Skip to content

Commit a31c099

Browse files
committed
#19 Add JoinerTests
1 parent ccb1ac0 commit a31c099

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Class DeclarativeCOS.JoinerTests Extends %UnitTest.TestCase
2+
{
3+
4+
Method TestJoin()
5+
{
6+
set words = ##class(%ListOfDataTypes).%New()
7+
do words.Insert("DeclarativeCOS")
8+
do words.Insert("is")
9+
do words.Insert("awesome!")
10+
11+
do $$$AssertEquals("DeclarativeCOS is awesome!", $zjoin(words, " "), "$zjoin must concatenate collection using separator")
12+
}
13+
14+
}
15+

0 commit comments

Comments
 (0)