add test for isZero, isOne

dev
MITSUNARI Shigeo 8 years ago
parent 0e0659a51a
commit 3e1363e8af
  1. 6
      ffi/cs/Program.cs

@ -439,9 +439,11 @@ namespace mcl {
Console.WriteLine("TestFr"); Console.WriteLine("TestFr");
Fr x = new Fr(); Fr x = new Fr();
x.Clear(); x.Clear();
Console.WriteLine("x = {0}", x); Console.WriteLine("x = {0}, isZero = {1}, isOne = {2}", x, x.IsZero(), x.IsOne());
x.SetInt(1);
Console.WriteLine("x = {0}, isZero = {1}, isOne = {2}", x, x.IsZero(), x.IsOne());
x.SetInt(3); x.SetInt(3);
Console.WriteLine("x = {0}", x); Console.WriteLine("x = {0}, isZero = {1}, isOne = {2}", x, x.IsZero(), x.IsOne());
x.SetInt(-5); x.SetInt(-5);
Console.WriteLine("x = {0}", x); Console.WriteLine("x = {0}", x);
x = -x; x = -x;

Loading…
Cancel
Save