Skip to content

Commit

Permalink
Update ZKLogin tests. #119
Browse files Browse the repository at this point in the history
  • Loading branch information
kPatch committed Dec 11, 2024
1 parent fdbc75c commit db0b0f0
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Assets/Sui-Unity-SDK/Tests/ZKLogin/NonceTest.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System;
using System.Numerics;
using NUnit.Framework;
using Sui.Cryptography.Ed25519;
Expand Down Expand Up @@ -45,9 +46,10 @@ public void GenerateNonceTest()
[Test]
public void ToBigIntBETest()
{
byte[] bytes = { };
BigInteger toBigintBE = NonceGenerator.ToBigIntBE(bytes);
Assert.AreEqual(null, bytes, "BigInteger Valye: " + "[IMPLEMENT]");
//byte[] bytes = { };
//BigInteger toBigintBE = NonceGenerator.ToBigIntBE(bytes);
//Assert.AreEqual(null, bytes, "BigInteger Valye: " + "[IMPLEMENT]");
throw new NotImplementedException();
}
}
}
27 changes: 27 additions & 0 deletions Assets/Sui-Unity-SDK/Tests/ZKLogin/UtilsTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using NUnit.Framework;
using UnityEngine;

namespace Sui.Tests.ZkLogin
{
public class UtilsTest
{
[Test]
public void FindFirstNonZeroIndexTest()
{
throw new NotImplementedException();
}

[Test]
public void ToPaddedBigEndianBytesTest()
{
throw new NotImplementedException();
}

[Test]
public void ToBigEndianBytesTest()
{
throw new NotImplementedException();
}
}
}
2 changes: 2 additions & 0 deletions Assets/Sui-Unity-SDK/Tests/ZKLogin/UtilsTest.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit db0b0f0

Please sign in to comment.