local mHatnoteList = require('Module:Hatnote list/sandbox') -- the module to be tested
local ScribuntoUnit = require('Module:ScribuntoUnit')
local suite = ScribuntoUnit:new()

function suite:testAndList()
	self:assertEquals("Foo, Bar, และ Baz", mHatnoteList.andList({"Foo", "Bar", "Baz"}))
end

function suite:testOrList()
	self:assertEquals("Foo, Bar, หรือ Baz", mHatnoteList.orList({"Foo", "Bar", "Baz"}))
end

function suite:testForSee()
	self:assertEquals(
		"สำหรับFoo ดูที่ [[:Bar]] สำหรับBaz ดูที่ [[:Qux]]",
		mHatnoteList._forSee({"Foo", "Bar", "Baz", "Qux"})
	)
end

return suite