summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2025-08-09 04:56:26 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2025-08-09 04:56:26 +0200
commit52d097a5374a966cdc26be678d49f4c8ef6a38cf (patch)
tree6ef710123e46a27f6f8e036c44f7f25376bbd88a /tests
parent091e1e639bb09568375c5b77a60b333d2f506c38 (diff)
downloadbidi-52d097a5374a966cdc26be678d49f4c8ef6a38cf.tar.gz
Fixed indentation
Diffstat (limited to 'tests')
-rw-r--r--tests/test.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/test.lua b/tests/test.lua
index 74bf797..644b54b 100644
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -24,12 +24,12 @@ function test_api()
end
function get_random_color()
- local keys = {}
- for k in pairs(color) do
- table.insert(keys, k) -- Collect all keys
- end
- local randomKey = keys[math.random(1, #keys)] -- Select a random key
- return color[randomKey] -- Return the corresponding color
+ local keys = {}
+ for k in pairs(color) do
+ table.insert(keys, k) -- Collect all keys
+ end
+ local randomKey = keys[math.random(1, #keys)] -- Select a random key
+ return color[randomKey] -- Return the corresponding color
end
function test_json()
@@ -62,7 +62,7 @@ function test_buttons()
if button_down(button.PAD_RIGHT) then
draw_text("Pad Right", 10, 100, 20, color.VIOLET)
end
-
+
if button_down(button.A) then
draw_text("A", 150, 10, 20, color.VIOLET)
end