Skip to content

Commit 73c386b

Browse files
author
Igor Polevoy
committed
#345 JSpec does not match list of strings - actually, this is working, just added tests
1 parent e8af1d6 commit 73c386b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

javalite-common/src/test/java/org/javalite/common/test/ExpectationTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,11 @@ public class A {
146146
public void shouldTestBooleanMethodWithCamelCase(){
147147
the(new A()).shouldBe("knownAsRole");
148148
}
149+
150+
@Test
151+
public void shouldTestContainsStrings(){
152+
List<String> numbers = list("one", "two", "three");
153+
the(numbers).shouldContain("one");
154+
the(numbers).shouldNotContain("four");
155+
}
149156
}

0 commit comments

Comments
 (0)