nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5c74781
)
app.nit: add default behavior to `TextAsset::load` for unit tests
author
Alexis Laferrière
<alexis.laf@xymus.net>
Mon, 8 May 2017 00:22:19 +0000
(20:22 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Mon, 8 May 2017 16:08:35 +0000
(12:08 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/app/assets.nit
patch
|
blob
|
history
diff --git
a/lib/app/assets.nit
b/lib/app/assets.nit
index
8c2dc5c
..
b67bcd2
100644
(file)
--- a/
lib/app/assets.nit
+++ b/
lib/app/assets.nit
@@
-37,7
+37,7
@@
class TextAsset
redef var to_s = load is lazy
# Load this asset
redef var to_s = load is lazy
# Load this asset
- fun load: String is abstract
+ fun load: String do return ""
# Error on the last call to `load`, if any
var error: nullable Error = null
# Error on the last call to `load`, if any
var error: nullable Error = null