Skip to content

Commit 5c62b7f

Browse files
committed
testcode
1 parent 2686db1 commit 5c62b7f

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Python.SystemTests/SystemTests.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,22 @@ public void printTest(string abcs)
4343
{
4444
print(abcs);
4545
}
46+
47+
48+
[TestMethod()]
49+
public void printTestSep()
50+
{
51+
int[] c = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 };
52+
print(c, "+");
53+
}
54+
55+
[TestMethod()]
56+
[DataRow(8, "0o10")]
57+
[DataRow(0x12345678, "0o2215053170")]
58+
59+
public void octTest(long x, string res)
60+
{
61+
Assert.AreEqual(res, oct(x));
62+
}
4663
}
4764
}

0 commit comments

Comments
 (0)