diff options
| author | Alexander M Pickering <alex@cogarr.net> | 2025-01-09 18:11:46 -0600 |
|---|---|---|
| committer | Alexander M Pickering <alex@cogarr.net> | 2025-01-09 18:11:46 -0600 |
| commit | decb72f936060a65bff18e9cbf33642ea3a71cd0 (patch) | |
| tree | 3b07bb1bfc1e4f0e39ec4ff8e0c243cd4fab0d61 /spec/net_spec.lua | |
| parent | 726876d42270f8974fd495be91127ea7585472ff (diff) | |
| download | ggj25-decb72f936060a65bff18e9cbf33642ea3a71cd0.tar.gz ggj25-decb72f936060a65bff18e9cbf33642ea3a71cd0.tar.bz2 ggj25-decb72f936060a65bff18e9cbf33642ea3a71cd0.zip | |
Work
Diffstat (limited to 'spec/net_spec.lua')
| -rw-r--r-- | spec/net_spec.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/net_spec.lua b/spec/net_spec.lua new file mode 100644 index 0000000..f3c24eb --- /dev/null +++ b/spec/net_spec.lua @@ -0,0 +1,16 @@ +describe("net module", function() + it("should load",function() + local net = require("net") + end) + it("should contain a peer class", function() + local net = require("net") + assert(net.Peer) + local peer = assert(net.Peer()) + end) + it("should generate a random id when not supplied #dev", function() + require("preload") + local net = require("net") + local peer = assert(net.Peer()) + print(peer) + end) +end) |
