More output for the test script

This commit is contained in:
ollo 2017-02-28 18:50:43 +01:00
parent 0085f9ae22
commit e485f2a0bd

View File

@ -1,6 +1,7 @@
-- Example usage of the word clock -- Example usage of the word clock
dofile("../wordclock.lua") dofile("../wordclock.lua")
print "------- Manual test ----"
-- Manually set something -- Manually set something
leds=display_timestat(15,30) leds=display_timestat(15,30)
for k,v in pairs(leds) do for k,v in pairs(leds) do
@ -8,6 +9,7 @@ for k,v in pairs(leds) do
print(k) print(k)
end end
end end
print "---------------------"
function checkWords(leds, expected, hour, min) function checkWords(leds, expected, hour, min)
for k, v in pairs(leds) do for k, v in pairs(leds) do
@ -34,6 +36,8 @@ function checkWords(leds, expected, hour, min)
print(hour .. ":" .. min) print(hour .. ":" .. min)
end end
print ""
print "----------- Unit tests -------------"
-- Unit tests -- Unit tests
leds=display_timestat(1,0) leds=display_timestat(1,0)
expected={} expected={}