From 37c667fdde67d1840bc5badf0f7d87f1f48472fb Mon Sep 17 00:00:00 2001 From: Gabriel Omar Cotelli Date: Sat, 4 Feb 2017 20:23:01 -0300 Subject: [PATCH] Fixed some code snippets --- docs/Assertions.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/Assertions.md b/docs/Assertions.md index a9588e8..c50d28e 100644 --- a/docs/Assertions.md +++ b/docs/Assertions.md @@ -71,19 +71,19 @@ Sometimes you want to check a condition but only after other conditions are met. ```smalltalk | code officiallyAssignedCodes | -code := 'AR'. +code := 'AA'. officiallyAssignedCodes := #('AR' 'BR' 'US'). AssertionCheckerBuilder new checking: [ :asserter | asserter enforce: [ code size = 2 and: [ code allSatisfy: #isLetter ]] - because: 'ISO 3166-1 Alpha-2 codes must have exactly two letters'; + because: 'ISO 3166-1 Alpha-2 codes must have exactly two letters' onSuccess: [ :sucessAsserter | sucessAsserter enforce: [ officiallyAssignedCodes includes: code ] because: [ '<1s> is not an officially assigned code' expandMacrosWith: code ] - ]; + ] ]; buildAndCheck ``` @@ -106,12 +106,12 @@ AssertionCheckerBuilder new checking: [ :asserter | asserter enforce: [ code size = 2 and: [ code allSatisfy: #isLetter ]] - because: 'ISO 3166-1 Alpha-2 codes must have exactly two letters'; + because: 'ISO 3166-1 Alpha-2 codes must have exactly two letters' onSuccess: [ :sucessAsserter | sucessAsserter refuse: [ unassignedCodes includes: code ] because: [ '<1s> is an unassigned code' expandMacrosWith: code ] - ]; + ] ]; buildAndCheck ```