diff --git a/mops.toml b/mops.toml index 03636bc..0c93038 100644 --- a/mops.toml +++ b/mops.toml @@ -3,7 +3,7 @@ name = "test" version = "1.0.1" description = "Motoko testing library to run tests with mops" repository = "https://github.com/ZenVoich/test" -keywords = [ "test", "mops", "testing", "unit", "suite" ] +keywords = [ "test", "testing", "unit", "suite", "expect", "matchers", "mops" ] license = "MIT" [dependencies] diff --git a/src/expect/lib.mo b/src/expect/lib.mo index 73771fe..9471544 100644 --- a/src/expect/lib.mo +++ b/src/expect/lib.mo @@ -44,15 +44,15 @@ module { public let expect = { bool = ExpectBool.ExpectBool; int = ExpectInt.ExpectInt; - int8 = func(val : Int8) : ExpectInt8.ExpectInt8 = ExpectInt8.ExpectInt8(val); - int16 = func(val : Int16) : ExpectInt16.ExpectInt16 = ExpectInt16.ExpectInt16(val); - int32 = func(val : Int32) : ExpectInt32.ExpectInt32 = ExpectInt32.ExpectInt32(val); - int64 = func(val : Int64) : ExpectInt64.ExpectInt64 = ExpectInt64.ExpectInt64(val); - nat = func(val : Nat) : ExpectNat.ExpectNat = ExpectNat.ExpectNat(val); - nat8 = func(val : Nat8) : ExpectNat8.ExpectNat8 = ExpectNat8.ExpectNat8(val); - nat16 = func(val : Nat16) : ExpectNat16.ExpectNat16 = ExpectNat16.ExpectNat16(val); - nat32 = func(val : Nat32) : ExpectNat32.ExpectNat32 = ExpectNat32.ExpectNat32(val); - nat64 = func(val : Nat64) : ExpectNat64.ExpectNat64 = ExpectNat64.ExpectNat64(val); + int8 = ExpectInt8.ExpectInt8; + int16 = ExpectInt16.ExpectInt16; + int32 = ExpectInt32.ExpectInt32; + int64 = ExpectInt64.ExpectInt64; + nat = ExpectNat.ExpectNat; + nat8 = ExpectNat8.ExpectNat8; + nat16 = ExpectNat16.ExpectNat16; + nat32 = ExpectNat32.ExpectNat32; + nat64 = ExpectNat64.ExpectNat64; char = ExpectChar.ExpectChar; text = ExpectText.ExpectText; array = ExpectArray.ExpectArray; diff --git a/test/expect.test.mo b/test/expect.test.mo index 03a89bb..c3af535 100644 --- a/test/expect.test.mo +++ b/test/expect.test.mo @@ -108,6 +108,7 @@ test("blob", func() { test("principal", func() { expect.principal(Principal.fromBlob(Blob.fromArray([1,2,3,4]))).equal(Principal.fromBlob(Blob.fromArray([1,2,3,4]))); + expect.principal(Principal.fromBlob(Blob.fromArray([1,2,3,4]))).notEqual(Principal.fromBlob(Blob.fromArray([1,2,3,5]))); expect.principal(Principal.fromBlob("\04")).isAnonymous(); expect.principal(Principal.fromBlob(Blob.fromArray([4]))).isAnonymous(); });