Completed Operators #117
GitHub Actions / Test Results
succeeded
Jan 19, 2024 in 0s
Test Results ✅
✅ TestResults.trx
122 tests were completed in 2s with 122 passed, 0 failed and 0 skipped.
✅ CLVMDotNet.Tests.CLVM.BLS.TestStream
✅ TestBLSStream
✅ CLVMDotNet.Tests.CLVM.Casts.IntFromBytes
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "0", from_bytes: [])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "1", from_bytes: [1])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "1024", from_bytes: [4, 0])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "10241024", from_bytes: [0, 156, 68, 0])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "128", from_bytes: [0, 128])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "16", from_bytes: [16])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "2048", from_bytes: [8, 0])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "204820482048", from_bytes: [47, 176, 64, 136, 0])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "20482048204820482048", from_bytes: [1, 28, 62, 218, 82, ...])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "256", from_bytes: [1, 0])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "32", from_bytes: [32])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "4096", from_bytes: [16, 0])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "512", from_bytes: [2, 0])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "64", from_bytes: [64])
✅ IntFromBytes_returns_expectedint(expectedNumberStr: "8", from_bytes: [8])
✅ CLVMDotNet.Tests.CLVM.Casts.IntToBytes
✅ IntToBytes_returns_expectedbytes(numberStr: "0", expectedBytes: [])
✅ IntToBytes_returns_expectedbytes(numberStr: "1", expectedBytes: [1])
✅ IntToBytes_returns_expectedbytes(numberStr: "1024", expectedBytes: [4, 0])
✅ IntToBytes_returns_expectedbytes(numberStr: "10241024", expectedBytes: [0, 156, 68, 0])
✅ IntToBytes_returns_expectedbytes(numberStr: "128", expectedBytes: [0, 128])
✅ IntToBytes_returns_expectedbytes(numberStr: "16", expectedBytes: [16])
✅ IntToBytes_returns_expectedbytes(numberStr: "2048", expectedBytes: [8, 0])
✅ IntToBytes_returns_expectedbytes(numberStr: "204820482048", expectedBytes: [47, 176, 64, 136, 0])
✅ IntToBytes_returns_expectedbytes(numberStr: "20482048204820482048", expectedBytes: [1, 28, 62, 218, 82, ...])
✅ IntToBytes_returns_expectedbytes(numberStr: "256", expectedBytes: [1, 0])
✅ IntToBytes_returns_expectedbytes(numberStr: "32", expectedBytes: [32])
✅ IntToBytes_returns_expectedbytes(numberStr: "4096", expectedBytes: [16, 0])
✅ IntToBytes_returns_expectedbytes(numberStr: "512", expectedBytes: [2, 0])
✅ IntToBytes_returns_expectedbytes(numberStr: "64", expectedBytes: [64])
✅ IntToBytes_returns_expectedbytes(numberStr: "8", expectedBytes: [8])
✅ CLVMDotNet.Tests.CLVM.Casts.LimbsForInt
✅ LimbsForInt_returns_expectedlength(numStr: "0", expectedNumberOfBytes: 0)
✅ LimbsForInt_returns_expectedlength(numStr: "1", expectedNumberOfBytes: 1)
✅ LimbsForInt_returns_expectedlength(numStr: "1024", expectedNumberOfBytes: 2)
✅ LimbsForInt_returns_expectedlength(numStr: "10241024", expectedNumberOfBytes: 4)
✅ LimbsForInt_returns_expectedlength(numStr: "128", expectedNumberOfBytes: 2)
✅ LimbsForInt_returns_expectedlength(numStr: "16", expectedNumberOfBytes: 1)
✅ LimbsForInt_returns_expectedlength(numStr: "204820482048", expectedNumberOfBytes: 5)
✅ LimbsForInt_returns_expectedlength(numStr: "20482048204820482048", expectedNumberOfBytes: 9)
✅ LimbsForInt_returns_expectedlength(numStr: "32", expectedNumberOfBytes: 1)
✅ LimbsForInt_returns_expectedlength(numStr: "64", expectedNumberOfBytes: 1)
✅ LimbsForInt_returns_expectedlength(numStr: "8", expectedNumberOfBytes: 1)
✅ CLVMDotNet.Tests.CLVM.CLVMObject.InstantiationTests
✅ Constructor_with_atom_sets_atom(atom: "")
✅ Constructor_with_atom_sets_atom(atom: 1)
✅ Constructor_with_atom_sets_atom(atom: 3)
✅ Constructor_with_invalid_tuple_shape
✅ Constructor_with_sexp_sets_atom
✅ Constructor_with_tuple_sets_pair(left: "", right: "")
✅ Constructor_with_tuple_sets_pair(left: "", right: null)
✅ Constructor_with_tuple_sets_pair(left: 3, right: 3)
✅ Constructor_with_tuple_sets_pair(left: null, right: null)
✅ CLVMDotNet.Tests.CLVM.HelperFunctions.MSBMask
✅ TestMsbMask(expectedbyte: 0, MSB: 0)
✅ TestMsbMask(expectedbyte: 1, MSB: 1)
✅ TestMsbMask(expectedbyte: 128, MSB: 128)
✅ TestMsbMask(expectedbyte: 128, MSB: 255)
✅ TestMsbMask(expectedbyte: 16, MSB: 16)
✅ TestMsbMask(expectedbyte: 2, MSB: 2)
✅ TestMsbMask(expectedbyte: 32, MSB: 32)
✅ TestMsbMask(expectedbyte: 32, MSB: 42)
✅ TestMsbMask(expectedbyte: 4, MSB: 4)
✅ TestMsbMask(expectedbyte: 64, MSB: 64)
✅ TestMsbMask(expectedbyte: 64, MSB: 68)
✅ TestMsbMask(expectedbyte: 8, MSB: 8)
✅ CLVMDotNet.Tests.CLVM.Operators.OperatorTests
✅ OpAdd
✅ OpDivide
✅ OpDivMod
✅ OpMultiply
✅ OpSubtract
✅ CLVMDotNet.Tests.CLVM.SExp.AsBin
✅ sexp_AsBinIsCorrectOrder(expected: [255, 1, 128], sexp_list: [1])
✅ sexp_AsBinIsCorrectOrder(expected: [255, 128, 128], sexp_list: [0])
✅ sexp_AsBinIsCorrectOrder(expected: [255, 8, 255, 8, 128], sexp_list: [8, 8])
✅ CLVMDotNet.Tests.CLVM.SExp.Equals
✅ Two_identical_sexp_are_equal
✅ CLVMDotNet.Tests.CLVM.SExp.SExpTests
✅ TestStringConversions
✅ TestWrapSExp
✅ CLVMDotNet.Tests.CLVM.SExp.To
✅ arbitrary_underlying_tree
✅ builds_correct_tree
✅ empty_list_conversions
✅ int_conversions
✅ test_case_1
✅ TestListConversions
✅ TestNullConversions
✅ CLVMDotNet.Tests.Serialize.AsBin
✅ TestEmpty
✅ TestZero
✅ CLVMDotNet.Tests.Serialize.AtomFromStream
✅ AtomFromStreamEmptyString
✅ AtomFromStreamMaxSingleByte
✅ CLVMDotNet.Tests.Serialize.CommonTests
✅ EmptyString
✅ CLVMDotNet.Tests.Serialize.SexpBufferFromStream
✅ DeserializeTruncatedBlobTest
✅ DeserializeTruncatedSizeTest
✅ TestDeserializeEmpty
✅ TestDeserializeLargeBlob
✅ CLVMDotNet.Tests.Serialize.SExpFromStream
✅ DeserializeTruncatedBlobTest
✅ DeserializeTruncatedSizeTest
✅ TestDeserializeEmpty
✅ CLVMDotNet.Tests.Tool.IRWriter.IRWriterTests
✅ WriterTests(sexpText: "(100 0x0100)")
✅ WriterTests(sexpText: "(a b c de f g h i . j)")
✅ WriterTests(sexpText: "(c . foo)")
✅ WriterTests(sexpText: "(c (quote 100) (c (quote \"foo\") (quote ())))")
✅ WriterTests(sexpText: "(the quick brown fox jumps over the lazy dogs)")
✅ WriterTests(sexpText: "\"100\"")
✅ WriterTests(sexpText: "0x0100")
✅ WriterTests(sexpText: "0x100")
✅ WriterTests(sexpText: "100")
✅ WriterTests(sexpText: "foo")
✅ WriterTests(sexpText: "the quick brown fox jumps over the lazy dogs")
✅ CLVMDotNet.Tests.Tools.IRReader.ReadIRTests
✅ IRReader_ignores_comments
✅ CLVMDotNet.Tests.Tools.IRReader.TokenStreamTests
✅ TokenStreamReader_matches_python_stream_length(input: "(- 5 (- 6 (- 5 (- 5 6))))", lengthOfStream: 17)
✅ TokenStreamReader_matches_python_stream_length(input: "(- 5 4)", lengthOfStream: 5)
✅ TokenStreamReader_matches_python_stream_length(input: "(equal 7 (+ 5 ;foo bar\n 2))", lengthOfStream: 9)
✅ TokenStreamReader_matches_python_stream_length(input: "(equal 7 (+ 5 ;foo bar\n \n\n\n \n\n\r 2))", lengthOfStream: 9)
✅ TokenStreamReader_matches_python_stream_length(input: "(equal 7 (+ 5 ;foo bar\n \n\n\n \n\n\r 8))", lengthOfStream: 9)
✅ TokenStreamReader_matches_python_stream_length(input: "(equal 7 (+ 5 (+ 1 5)))", lengthOfStream: 13)
✅ CLVMDotNet.Tests.Tools.UtilsTests
✅ Convert_to_base256_matches_python(expected: "1129268293", sym: "CODE")
✅ Convert_to_base256_matches_python(expected: "1129270867", sym: "CONS")
✅ Convert_to_base256_matches_python(expected: "1313817669", sym: "NODE")
✅ Convert_to_base256_matches_python(expected: "1314212940", sym: "NULL")
✅ Convert_to_base256_matches_python(expected: "20304", sym: "OP")
✅ Convert_to_base256_matches_python(expected: "20820", sym: "QT")
✅ Convert_to_base256_matches_python(expected: "4477268", sym: "DQT")
✅ Convert_to_base256_matches_python(expected: "4736344", sym: "HEX")
✅ Convert_to_base256_matches_python(expected: "4804180", sym: "INT")
✅ Convert_to_base256_matches_python(expected: "5460308", sym: "SQT")
✅ Convert_to_base256_matches_python(expected: "5462349", sym: "SYM")
Loading