Skip to content

Commit

Permalink
add unit test and 2.1 source files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Phillips committed Feb 6, 2016
1 parent 6f7853e commit a59cf40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deps/luajit.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ SET(SRC_LJCORE
${LUAJIT_DIR}/src/lj_gc.c
${LUAJIT_DIR}/src/lj_err.c
${LUAJIT_DIR}/src/lj_char.c
${LUAJIT_DIR}/src/lj_buf.c
${LUAJIT_DIR}/src/lj_profile.c
${LUAJIT_DIR}/src/lj_strfmt.c
${LUAJIT_DIR}/src/lj_bc.c
${LUAJIT_DIR}/src/lj_obj.c
${LUAJIT_DIR}/src/lj_str.c
Expand Down
6 changes: 6 additions & 0 deletions tests/test-conversions.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
return require('lib/tap')(function (test)
test("basic 64bit conversions", function (print, p, expect, uv)
assert(string.format("%x", 29913653248) == "6f6fe2000")
assert(string.format("%x", 32207650816) == "77fb9c000")
end)
end)

0 comments on commit a59cf40

Please sign in to comment.