summaryrefslogtreecommitdiff
path: root/spec/net_spec.lua
blob: f3c24eb22789a350490318b490639c38f76ccbe1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)