Skip to content

Commit

Permalink
Add dummy tests for BigIntUnstringifier. #119
Browse files Browse the repository at this point in the history
  • Loading branch information
kPatch committed Nov 15, 2024
1 parent d766b7f commit bde3caa
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Assets/Sui-Unity-SDK/Tests/BigIntUnstringifierTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

using NUnit.Framework;
using OpenDive.Crypto.PoseidonLite.Constants;
using UnityEngine.Windows;
using OpenDive.Crypto.PoseidonLite;
using System.Numerics;

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"];
}
}
11 changes: 11 additions & 0 deletions Assets/Sui-Unity-SDK/Tests/BigIntUnstringifierTest.cs.meta

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

0 comments on commit bde3caa

Please sign in to comment.