repo.or.cz
/
mu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix other mandelbrot variants
[mu.git]
/
tutorial
/
task4-solution.mu
blob
060b7123c8265db90fb5b3efa019087d3b33ff24
1
fn the-answer -> _/eax: int {
2
var result/eax: int <- copy 0
3
# insert your statement below {
4
result <- copy 0x2a
5
# }
6
return result
7
}
8
9
fn test-the-answer {
10
var result/eax: int <- the-answer
11
check-ints-equal result, 0x2a, "F - the-answer should return 42, but didn't."
12
}
13
14
fn main {
15
}