init wollok
This commit is contained in:
10
.gitignore
vendored
Normal file
10
.gitignore
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
# Local history
|
||||
.history
|
||||
|
||||
# Wollok Log
|
||||
log
|
||||
*.log
|
||||
|
||||
# Dependencies
|
||||
node_modules
|
||||
9
example.wlk
Normal file
9
example.wlk
Normal file
@@ -0,0 +1,9 @@
|
||||
object pepita {
|
||||
var energy = 100
|
||||
|
||||
method energy() = energy
|
||||
|
||||
method fly(minutes) {
|
||||
energy = energy - minutes * 3
|
||||
}
|
||||
}
|
||||
8
package.json
Normal file
8
package.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "repo-wollok-en-gitea1",
|
||||
"version": "1.0.0",
|
||||
"wollokVersion": "4.2.3",
|
||||
"author": "CONIGLIOH",
|
||||
"license": "ISC"
|
||||
}
|
||||
|
||||
9
testExample.wtest
Normal file
9
testExample.wtest
Normal file
@@ -0,0 +1,9 @@
|
||||
import example.pepita
|
||||
|
||||
describe "group of tests for pepita" {
|
||||
|
||||
test "pepita has initial energy" {
|
||||
assert.equals(100, pepita.energy())
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user