本文整理匯總了Java中goryachev.common.test.Test類的典型用法代碼示例。如果您正苦於以下問題:Java Test類的具體用法?Java Test怎麽用?Java Test使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
Test類屬於goryachev.common.test包,在下文中一共展示了Test類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: testMod
import goryachev.common.test.Test; //導入依賴的package包/類
@Test
public void testMod()
{
TF.eq(CKit.mod(-10, 4), 2);
TF.eq(CKit.mod( -9, 4), 3);
TF.eq(CKit.mod( -8, 4), 0);
TF.eq(CKit.mod( -7, 4), 1);
TF.eq(CKit.mod( -6, 4), 2);
TF.eq(CKit.mod( -5, 4), 3);
TF.eq(CKit.mod( -4, 4), 0);
TF.eq(CKit.mod( -3, 4), 1);
TF.eq(CKit.mod( -2, 4), 2);
TF.eq(CKit.mod( -1, 4), 3);
TF.eq(CKit.mod( 0, 4), 0);
TF.eq(CKit.mod( 1, 4), 1);
TF.eq(CKit.mod( 2, 4), 2);
TF.eq(CKit.mod( 3, 4), 3);
TF.eq(CKit.mod( 4, 4), 0);
TF.eq(CKit.mod( 5, 4), 1);
TF.eq(CKit.mod( 6, 4), 2);
TF.eq(CKit.mod( 7, 4), 3);
TF.eq(CKit.mod( 8, 4), 0);
TF.eq(CKit.mod( 9, 4), 1);
TF.eq(CKit.mod( 10, 4), 2);
}
示例2: testNaturalOrder
import goryachev.common.test.Test; //導入依賴的package包/類
@Test
public void testNaturalOrder()
{
String[] ss =
{
"$ yo",
"% YO",
"zz100000000000000000000000000000000000000000000000000000000000002 z",
"zz100000000000000000000000000000000000000000000000000000000000002yy",
"zz 100000000000000000000000000000000000000000000000000000000000001yy",
" 1",
"2",
"3 a",
"b",
"cc",
"$d"
};
c().sort(ss);
D.list(ss);
}
示例3: testEncoding
import goryachev.common.test.Test; //導入依賴的package包/類
@Test
public void testEncoding() throws Exception
{
test
(
null,
"a",
"=",
"\\",
",",
",,,,",
"k=v",
"k=v,a,b",
new Object[] { "a", "b" },
new Object[] { "a", "\\,=,\\..,,,\\2E", null, null, "\\", "\\2E" }
);
}
示例4: print
import goryachev.common.test.Test; //導入依賴的package包/類
@Test
public void print()
{
// https://www.w3.org/People/danield/unic/unichar.htm
t("Etruscan", 0x00010200, 0x00010227);
t("Gothic", 0x00010230, 0x0001024B);
t("Klingon", 0x000123D0, 0x000123F9);
t("Western Musical Symbols", 0x0001D103, 0x0001D1D7);
}
示例5: test
import goryachev.common.test.Test; //導入依賴的package包/類
@Test
public void test()
{
D.print("yo");
D.print("yo");
D.print("yo");
}
示例6: testSplit
import goryachev.common.test.Test; //導入依賴的package包/類
@Test
public void testSplit() throws Exception
{
split("a", ",", "a");
split("a,", ",", "a", "");
split(",a", ",", "", "a");
split(",", ",", "", "");
split("a,b,c", ",", "a", "b", "c");
split("a", "DEL", "a");
split("aDEL", "DEL", "a", "");
split("DELa", "DEL", "", "a");
split("aDELbDELc", "DEL", "a", "b", "c");
}
示例7: testSingle
import goryachev.common.test.Test; //導入依賴的package包/類
@Test
public void testSingle()
{
// t("51 Clasteron", "51B Clasteron", -1);
// t("20X R", "200X R", -1);
// t("z11.doc", "z20.doc", -1);
t("Ask", "$ Change", -1);
}
示例8: test
import goryachev.common.test.Test; //導入依賴的package包/類
@Test
public void test()
{
D.print("\n[" + new TestCssGen().generateStyleSheet() + "]");
}
示例9: testCollectPublicStatic
import goryachev.common.test.Test; //導入依賴的package包/類
@Test
public void testCollectPublicStatic()
{
TF.eq(CKit.collectPublicStaticFields(TestCKit.class, String.class).size(), TestCKit.class.getFields().length);
}