Skip to content

Commit

Permalink
Update BigIntUnstringifier test. #119
Browse files Browse the repository at this point in the history
  • Loading branch information
kPatch committed Dec 11, 2024
1 parent 562580d commit a5ede02
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 30 deletions.
30 changes: 0 additions & 30 deletions Assets/Sui-Unity-SDK/Tests/BigIntUnstringifierTest.cs

This file was deleted.

8 changes: 8 additions & 0 deletions Assets/Sui-Unity-SDK/Tests/ZKLogin.meta

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

31 changes: 31 additions & 0 deletions Assets/Sui-Unity-SDK/Tests/ZKLogin/BigIntUnstringifierTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System.Collections.Generic;
using UnityEngine;
using NUnit.Framework;
using OpenDive.Crypto.PoseidonLite.Constants;
using OpenDive.Crypto.PoseidonLite;
using System.Numerics;

namespace Sui.Tests.ZkLogin
{
public class BigIntUnstringifierTest : MonoBehaviour
{
[Test]
public void UnstrinifyBigInt1()
{
var constant1 = new Dictionary<string, object>
{
["C"] = C1.C,
["M"] = C1.M
};

var result = BigIntUnstringifier.UnstringifyBigInts(constant1);

// Access C array
var cArray = (List<BigInteger>)result["C"];

// Access M array (list of lists)
var mArray = (List<List<BigInteger>>)result["M"];
}
}

}

0 comments on commit a5ede02

Please sign in to comment.