當前位置: 首頁>>代碼示例>>Java>>正文


Java Test類代碼示例

本文整理匯總了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);
}
 
開發者ID:andy-goryachev,項目名稱:FxDock,代碼行數:26,代碼來源:TestCKit.java

示例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);
}
 
開發者ID:andy-goryachev,項目名稱:FxDock,代碼行數:23,代碼來源:TestCComparator.java

示例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" }
	);
}
 
開發者ID:andy-goryachev,項目名稱:FxDock,代碼行數:18,代碼來源:TestSettingsProviderBase.java

示例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);
}
 
開發者ID:andy-goryachev,項目名稱:FxEditor,代碼行數:10,代碼來源:TestUnicode.java

示例5: test

import goryachev.common.test.Test; //導入依賴的package包/類
@Test
public void test()
{
	D.print("yo");
	D.print("yo");
	D.print("yo");
}
 
開發者ID:andy-goryachev,項目名稱:ReqTraq,代碼行數:8,代碼來源:TestD.java

示例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");
}
 
開發者ID:andy-goryachev,項目名稱:FxDock,代碼行數:15,代碼來源:TestCKit.java

示例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);
	}
 
開發者ID:andy-goryachev,項目名稱:FxDock,代碼行數:9,代碼來源:TestNaturalSort.java

示例8: test

import goryachev.common.test.Test; //導入依賴的package包/類
@Test
public void test()
{
	D.print("\n[" + new TestCssGen().generateStyleSheet() + "]");
}
 
開發者ID:andy-goryachev,項目名稱:ReqTraq,代碼行數:6,代碼來源:TestCssGen.java

示例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);
}
 
開發者ID:andy-goryachev,項目名稱:FxDock,代碼行數:6,代碼來源:TestCKit.java


注:本文中的goryachev.common.test.Test類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。