Corrected package structure
This commit is contained in:
parent
0ad3239907
commit
ad09fe3a94
|
@ -1,4 +1,4 @@
|
|||
import ../src/mpint, times
|
||||
import ../stint/mpint, times
|
||||
|
||||
|
||||
# Warmup on normal int
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
#
|
||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
import ./uint_public, ./int_public, ./io
|
||||
export uint_public, int_public, io
|
||||
import stint/[uint_public, int_public, io]
|
||||
export uint_public, int_public, io
|
||||
|
||||
type
|
||||
Int128* = Stint[128]
|
|
@ -3,8 +3,7 @@ version = "0.0.1"
|
|||
author = "Status Research & Development GmbH"
|
||||
description = "Efficient stack-based multiprecision int in Nim"
|
||||
license = "Apache License 2.0 or MIT"
|
||||
srcDir = "src"
|
||||
|
||||
skipDirs = @["tests", "benchmarks"]
|
||||
### Dependencies
|
||||
|
||||
# TODO remove quicktest and ttmath test only requirements: https://github.com/nim-lang/nimble/issues/482
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
# Test implementation of internal proc:
|
||||
|
||||
include ../src/private/uint_div
|
||||
include ../stint/private/uint_div
|
||||
import unittest
|
||||
|
||||
suite "implementation of internal division procecures":
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
import ../src/stint, unittest, quicktest
|
||||
import ../stint, unittest, quicktest
|
||||
|
||||
const itercount = 1000
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
# Requires "https://github.com/status-im/nim-ttmath#master"
|
||||
# Note that currently importing both Stint and TTMath will crash the compiler for unknown reason
|
||||
import ../src/stint, unittest, quicktest, ttmath_compat
|
||||
import ../stint, unittest, quicktest, ttmath_compat
|
||||
|
||||
const itercount = 10_000
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
import ../src/stint, unittest
|
||||
import ../stint, unittest
|
||||
|
||||
suite "Testing signed addition implementation":
|
||||
test "In-place addition gives expected result":
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
import ../src/stint, unittest
|
||||
import ../stint, unittest
|
||||
|
||||
suite "Signed int - Testing comparison operators":
|
||||
let
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
import ../src/stint, unittest
|
||||
import ../stint, unittest
|
||||
|
||||
suite "Testing signed int byte representation":
|
||||
test "Byte representation conforms to the platform endianness":
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
import ../src/stint, unittest
|
||||
import ../stint, unittest
|
||||
|
||||
suite "Testing signed int multiplication implementation":
|
||||
test "Multiplication with result fitting in low half":
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
import ../src/stint, unittest, strutils
|
||||
import ../stint, unittest, strutils
|
||||
|
||||
suite "Testing input and output procedures":
|
||||
test "Creation from decimal strings":
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
import ../src/stint, unittest
|
||||
import ../stint, unittest
|
||||
|
||||
suite "Testing unsigned int addition implementation":
|
||||
test "In-place addition gives expected result":
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
import ../src/stint, unittest
|
||||
import ../stint, unittest
|
||||
|
||||
suite "Testing unsigned int bitwise operations":
|
||||
let a = 100'i16.stuint(16)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
import ../src/stint, unittest
|
||||
import ../stint, unittest
|
||||
|
||||
suite "Testing unsigned int comparison operators":
|
||||
let
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
import ../src/stint, unittest
|
||||
import ../stint, unittest
|
||||
|
||||
suite "Testing unsigned int byte representation":
|
||||
test "Byte representation conforms to the platform endianness":
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#
|
||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
import ../src/stint, unittest
|
||||
import ../stint, unittest
|
||||
|
||||
suite "Testing unsigned int multiplication implementation":
|
||||
test "Multiplication with result fitting in low half":
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import ../src/stint, ttmath
|
||||
import ../stint, ttmath
|
||||
export ttmath
|
||||
|
||||
template asSt*(val: UInt): auto =
|
||||
|
|
Loading…
Reference in New Issue