Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #162 // assertEquals

Lua code

1  
function assertEquals(actual, expected)
2  
  if actual ~= expected then
3  
    error("assertEquals: "..tostring(actual).." - expected: "..tostring(expected))
4  
  end
5  
end

test run  test run with input  download  show line numbers   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Image recognition results

Recognizer Recognition Result Visualize Recalc
#308 165 [visualize]

Snippet ID: #162
Snippet name: assertEquals
Eternal ID of this version: #162/1
Text MD5: 7de6c4c6403e102c9a6d130b5cdfb744
Author: stefan
Category:
Type: Lua code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2014-01-14 02:30:46
Source code size: 165 bytes / 5 lines
Pitched / IR pitched: Yes / Yes
Views / Downloads: 830 / 216
Referenced in: [show references]