| 
					
				 | 
			
			
				@@ -65,27 +65,33 @@ let strUtil = require('../../public/stringUtil'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 //     t.end(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-test('test number to Chinese', function(t){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(0, false, false), '零'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(0, true, false), '零元整'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(0.68, true, false), '零元六角八分'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(0.68, true, true), '零元陆角捌分'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(10, false, false), '一十'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(10, false, true), '壹拾'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(11, false, false), '一十一'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(11, false, true), '壹拾壹'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(12, false, false), '一十二'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(12, false, true), '壹拾贰'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(21, false, false), '二十一'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(21, false, true), '贰拾壹'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(0.123456789, false, false), '零点一二三四五六七八九'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(10.123456789, false, false), '一十点一二三四五六七八九'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// test('test number to Chinese', function(t){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(0, false, false), '零'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(0, true, false), '零元整'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(0.68, true, false), '零元六角八分'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(0.68, true, true), '零元陆角捌分'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(10, false, false), '一十'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(10, false, true), '壹拾'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(11, false, false), '一十一'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(11, false, true), '壹拾壹'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(12, false, false), '一十二'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(12, false, true), '壹拾贰'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(21, false, false), '二十一'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(21, false, true), '贰拾壹'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(0.123456789, false, false), '零点一二三四五六七八九'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(10.123456789, false, false), '一十点一二三四五六七八九'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(123456789.15, false, false), '一亿二千三百四十五万六千七百八十九点一五'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(123456789.15, false, true), '壹億贰仟叁佰肆拾伍萬陆仟柒佰捌拾玖点壹伍'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(123456789.15, true, false), '一亿二千三百四十五万六千七百八十九元一角五分'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.equal(strUtil.convertToCaptionNum(123456789.15, true, true), '壹億贰仟叁佰肆拾伍萬陆仟柒佰捌拾玖元壹角伍分'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+//     t.end(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+// }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(123456789.15, false, false), '一亿二千三百四十五万六千七百八十九点一五'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(123456789.15, false, true), '壹億贰仟叁佰肆拾伍萬陆仟柒佰捌拾玖点壹伍'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(123456789.15, true, false), '一亿二千三百四十五万六千七百八十九元一角五分'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.equal(strUtil.convertToCaptionNum(123456789.15, true, true), '壹億贰仟叁佰肆拾伍萬陆仟柒佰捌拾玖元壹角伍分'); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+test('test string combine', function(t){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t.pass('ABC:' + 1 + 0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     t.end(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }); 
			 |