Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aa1024 committed Apr 14, 2018
1 parent 6345976 commit 52aae11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/libs/strTests.q
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ import `str`unittest;
.unittest.assert[`.str.fc;enlist "FlipCase";"fLIPcASE"];

//Space Fill Test
.unittest.assert[`.str.sf; (3;12);" 12"];
.unittest.assert[`.str.sfl; (3;12);" 12"];
.unittest.assert[`.str.sfr; (3;12);"12 "];

//Zero Fill Test
.unittest.assert[`.str.zf;(4;72);"0072"];
.unittest.assert[`.str.zfl;(4;72);"0072"];
.unittest.assert[`.str.zfr;(4;72);"7200"];

.unittest.assert[`.str.tu;enlist "To Upper Case";"TO UPPER CASE"];
.unittest.assert[`.str.tu;enlist `Upper;`UPPER];
Expand Down

0 comments on commit 52aae11

Please sign in to comment.