summaryrefslogtreecommitdiff
path: root/spec/net_spec.lua
blob: 82686e6619ac9e391cb5a1cb938acb3791db943a (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", function()
		require("preload")
		local net = require("net")
		local peer = assert(net.Peer())
		print(peer)
	end)
end)