mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
add yui3 partial definition type & add many tests file to cryptojs
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/// <reference path="../../yui/yui.d.ts" />
|
||||
/// <reference path="../cryptojs.d.ts" />
|
||||
|
||||
YUI.add('enc-hex-test', function (Y) {
|
||||
var C = CryptoJS;
|
||||
|
||||
Y.Test.Runner.add(new Y.Test.Case({
|
||||
name: 'Hex',
|
||||
|
||||
testStringify: function () {
|
||||
Y.Assert.areEqual('12345678', C.enc.Hex.stringify(C.lib.WordArray.create([0x12345678])));
|
||||
},
|
||||
|
||||
testParse: function () {
|
||||
Y.Assert.areEqual(C.lib.WordArray.create([0x12345678]).toString(), C.enc.Hex.parse('12345678').toString());
|
||||
}
|
||||
}));
|
||||
}, '$Rev$');
|
||||
Reference in New Issue
Block a user