mirror of
https://github.com/logos-storage/swarmsim.git
synced 2026-01-05 23:33:06 +00:00
import tweaks
This commit is contained in:
parent
3a750decc4
commit
4cf1b793e2
@ -1,13 +1,10 @@
|
|||||||
import ../engine/protocol
|
|
||||||
import ../engine/network
|
|
||||||
import ../engine/schedulableevent
|
|
||||||
import ../timeutils
|
|
||||||
|
|
||||||
import std/times
|
import std/times
|
||||||
import std/options
|
import std/options
|
||||||
import std/algorithm
|
import std/algorithm
|
||||||
import std/tables
|
import std/tables
|
||||||
import sequtils
|
import std/sequtils
|
||||||
|
|
||||||
|
import ../engine
|
||||||
|
|
||||||
export protocol
|
export protocol
|
||||||
export options
|
export options
|
||||||
|
|||||||
6
swarmsim/engine.nim
Normal file
6
swarmsim/engine.nim
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
import engine/protocol
|
||||||
|
import engine/network
|
||||||
|
import engine/schedulableevent
|
||||||
|
import timeutils
|
||||||
|
|
||||||
|
export protocol, network, schedulableevent, timeutils
|
||||||
@ -4,8 +4,8 @@ import sugar
|
|||||||
|
|
||||||
import std/algorithm
|
import std/algorithm
|
||||||
|
|
||||||
import pkg/swarmsim/engine/schedulableevent
|
import swarmsim/engine/schedulableevent
|
||||||
import pkg/swarmsim/engine/eventdrivenengine
|
import swarmsim/engine/eventdrivenengine
|
||||||
|
|
||||||
type TestSchedulable = ref object of SchedulableEvent
|
type TestSchedulable = ref object of SchedulableEvent
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import pkg/swarmsim/engine/eventdrivenengine
|
import swarmsim/engine/eventdrivenengine
|
||||||
import pkg/swarmsim/engine/network
|
import swarmsim/engine/network
|
||||||
import pkg/swarmsim/engine/peer
|
import swarmsim/engine/peer
|
||||||
import pkg/swarmsim/engine/protocol
|
import swarmsim/engine/protocol
|
||||||
|
|
||||||
type
|
type
|
||||||
FakeProtocol = ref object of Protocol
|
FakeProtocol = ref object of Protocol
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import std/unittest
|
import std/unittest
|
||||||
import std/sets
|
import std/sets
|
||||||
|
|
||||||
import pkg/swarmsim/engine/peer
|
import swarmsim/engine/peer
|
||||||
|
|
||||||
suite "peer":
|
suite "peer":
|
||||||
test "should allow inclusion and membership tests on a HashSet":
|
test "should allow inclusion and membership tests on a HashSet":
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import pkg/swarmsim/engine/schedulableevent
|
import swarmsim/engine/schedulableevent
|
||||||
|
|
||||||
suite "schedulable event":
|
suite "schedulable event":
|
||||||
test "should be ordered by time":
|
test "should be ordered by time":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user