Parcourir la source

fix typo. add calculator in actions.

SakiKawasaki il y a 4 ans
Parent
commit
bbb25a3318
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1 0
      .github/workflows/test.yml
  2. 1 1
      examples/calculator/main.nim

+ 1 - 0
.github/workflows/test.yml

@@ -51,6 +51,7 @@ jobs:
           # (cd examples/calculator && nim c main.nim)
 
           (cd examples/hello_world && nim c main.nim)
+          (cd examples/calculator && nim c main.nim)
           (cd examples/novel && nim c main.nim)
           (cd examples/snake && nim c main.nim)
         shell: bash

+ 1 - 1
examples/calculator/main.nim

@@ -59,7 +59,7 @@ vbox.addChild(result)
 vbox.addChild(buttons)
 vbox.setChildAnchor(0.5, 0.5, 0.5, 0.5)
 vbox.setSizeAnchor(1, 1)
-buttons.setRaw(4)
+buttons.setRow(4)
 
 buttons.addChild(button_7)
 button_7.text = "7"