Corrected package structure

This commit is contained in:
Yuriy Glukhov 2018-05-08 16:51:55 +03:00
parent 0ad3239907
commit ad09fe3a94
40 changed files with 18 additions and 19 deletions

View File

@ -1,4 +1,4 @@
import ../src/mpint, times import ../stint/mpint, times
# Warmup on normal int # Warmup on normal int

View File

@ -7,7 +7,7 @@
# #
# at your option. This file may not be copied, modified, or distributed except according to those terms. # at your option. This file may not be copied, modified, or distributed except according to those terms.
import ./uint_public, ./int_public, ./io import stint/[uint_public, int_public, io]
export uint_public, int_public, io export uint_public, int_public, io
type type

View File

@ -3,8 +3,7 @@ version = "0.0.1"
author = "Status Research & Development GmbH" author = "Status Research & Development GmbH"
description = "Efficient stack-based multiprecision int in Nim" description = "Efficient stack-based multiprecision int in Nim"
license = "Apache License 2.0 or MIT" license = "Apache License 2.0 or MIT"
srcDir = "src" skipDirs = @["tests", "benchmarks"]
### Dependencies ### Dependencies
# TODO remove quicktest and ttmath test only requirements: https://github.com/nim-lang/nimble/issues/482 # TODO remove quicktest and ttmath test only requirements: https://github.com/nim-lang/nimble/issues/482

View File

@ -9,7 +9,7 @@
# Test implementation of internal proc: # Test implementation of internal proc:
include ../src/private/uint_div include ../stint/private/uint_div
import unittest import unittest
suite "implementation of internal division procecures": suite "implementation of internal division procecures":

View File

@ -7,7 +7,7 @@
# #
# at your option. This file may not be copied, modified, or distributed except according to those terms. # 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 const itercount = 1000

View File

@ -10,7 +10,7 @@
# Requires "https://github.com/status-im/nim-ttmath#master" # Requires "https://github.com/status-im/nim-ttmath#master"
# Note that currently importing both Stint and TTMath will crash the compiler for unknown reason # 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 const itercount = 10_000

View File

@ -7,7 +7,7 @@
# #
# at your option. This file may not be copied, modified, or distributed except according to those terms. # 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": suite "Testing signed addition implementation":
test "In-place addition gives expected result": test "In-place addition gives expected result":

View File

@ -7,7 +7,7 @@
# #
# at your option. This file may not be copied, modified, or distributed except according to those terms. # 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": suite "Signed int - Testing comparison operators":
let let

View File

@ -7,7 +7,7 @@
# #
# at your option. This file may not be copied, modified, or distributed except according to those terms. # 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": suite "Testing signed int byte representation":
test "Byte representation conforms to the platform endianness": test "Byte representation conforms to the platform endianness":

View File

@ -7,7 +7,7 @@
# #
# at your option. This file may not be copied, modified, or distributed except according to those terms. # 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": suite "Testing signed int multiplication implementation":
test "Multiplication with result fitting in low half": test "Multiplication with result fitting in low half":

View File

@ -7,7 +7,7 @@
# #
# at your option. This file may not be copied, modified, or distributed except according to those terms. # 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": suite "Testing input and output procedures":
test "Creation from decimal strings": test "Creation from decimal strings":

View File

@ -7,7 +7,7 @@
# #
# at your option. This file may not be copied, modified, or distributed except according to those terms. # 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": suite "Testing unsigned int addition implementation":
test "In-place addition gives expected result": test "In-place addition gives expected result":

View File

@ -7,7 +7,7 @@
# #
# at your option. This file may not be copied, modified, or distributed except according to those terms. # 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": suite "Testing unsigned int bitwise operations":
let a = 100'i16.stuint(16) let a = 100'i16.stuint(16)

View File

@ -7,7 +7,7 @@
# #
# at your option. This file may not be copied, modified, or distributed except according to those terms. # 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": suite "Testing unsigned int comparison operators":
let let

View File

@ -7,7 +7,7 @@
# #
# at your option. This file may not be copied, modified, or distributed except according to those terms. # 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": suite "Testing unsigned int byte representation":
test "Byte representation conforms to the platform endianness": test "Byte representation conforms to the platform endianness":

View File

@ -7,7 +7,7 @@
# #
# at your option. This file may not be copied, modified, or distributed except according to those terms. # 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": suite "Testing unsigned int multiplication implementation":
test "Multiplication with result fitting in low half": test "Multiplication with result fitting in low half":

View File

@ -1,4 +1,4 @@
import ../src/stint, ttmath import ../stint, ttmath
export ttmath export ttmath
template asSt*(val: UInt): auto = template asSt*(val: UInt): auto =