summary refs log tree commit diff stats
path: root/lib/stdlib.nimble
Commit message (Collapse)AuthorAgeFilesLines
* attempt to make the build green againAraq2017-01-071-1/+0
|
* use new nimble file format to make Nim's version DRYAraq2017-01-071-2/+2
|
* updated development versionAraq2016-10-311-1/+1
|
* version bumpAndreas Rumpf2016-10-211-1/+1
|
* develop version is 0.15.1Araq2016-10-081-1/+1
|
* version changed to 0.15.0Araq2016-10-011-1/+1
|
* version bump for developmentAndreas Rumpf2016-06-111-1/+1
|
* version bump to 0.14.2Araq2016-06-081-1/+1
|
* update the version number in more placesAraq2016-06-071-1/+1
|
* updated version to 0.13.0Araq2016-01-181-1/+1
|
* VM supports math and a few os procsAraq2014-08-301-0/+6
38 39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
                                        
 



                                         





















                                                


          







                                         
                         


                     


























                                         
# tests for 'scenario' in previous layer

scenario first_scenario_in_mu [
  run [
    1:integer <- add 2:literal, 2:literal
  ]
  memory-should-contain [
    1 <- 4
  ]
]

scenario scenario_with_comment_in_mu [
  run [
    # comment
    1:integer <- add 2:literal, 2:literal
  ]
  memory-should-contain [
    1 <- 4
  ]
]

scenario scenario_with_multiple_comments_in_mu [
  run [
    # comment1
    # comment2
    1:integer <- add 2:literal, 2:literal
  ]
  memory-should-contain [
    1 <- 4
  ]
]

scenario check_string_in_memory [
  run [
    1:integer <- copy 3:literal
    2:character <- copy 97:literal  # 'a'
    3:character <- copy 98:literal  # 'b'
    4:character <- copy 99:literal  # 'c'
  ]
  memory-should-contain [
    1:string <- [abc]
  ]
]

scenario check_trace [
  run [
    1:integer <- add 2:literal, 2:literal
  ]
  trace-should-contain [
    mem: storing 4 in location 1
  ]
]

scenario check_trace_negative [
  run [
    1:integer <- add 2:literal, 2:literal
  ]
  trace-should-not-contain [
    mem: storing 5 in location 1
  ]
]

scenario check_trace_instruction [
  run [
    trace [foo], [aaa]
  ]
  trace-should-contain [
    foo: aaa
  ]
]