hawkthorne / lovetest Goto Github PK
View Code? Open in Web Editor NEWUnit testing for LOVE, powered by lunatest
License: MIT License
Unit testing for LOVE, powered by lunatest
License: MIT License
Hello there,
first of all, thanks for the awesome framework you made, I love it.
But I have a little problem with importing socket, I did everything you said on the readme, but after trying to run love . --test
I encountered the following error:
Error: test/lunatest.lua:64: attempt to index global 'socket' (a nil value)
stack traceback:
[string "boot.lua"]:637: in function '__index'
test/lunatest.lua:64: in main chunk
[C]: in function 'require'
test/lovetest.lua:26: in function 'run'
main.lua:27: in function 'load'
[string "boot.lua"]:488: in function <[string "boot.lua"]:487>
[C]: in function 'xpcall'
[string "boot.lua"]:650: in function <[string "boot.lua"]:639>
[C]: in function 'xpcall'
Adding explicit import to lunatest.lua
solved the problem.
local socket = require("socket")
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.