Skip to content

Commit

Permalink
feat: Added tests for .FILENAME pseudo-instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
Fubukimaru committed Nov 17, 2024
1 parent 7345d71 commit e0712ba
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions test/features/program.feature
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Feature: Test program functions
Then file behave_test/test.rom exists
And file test.rom does not exist

Scenario: Issue #132 Custom output file (-o folder/)
Scenario: Issue #132 Custom output file (File to Folder with -o folder/)
Given I create folder behave_test
Given I write the code to test.asm
"""
Expand All @@ -140,7 +140,7 @@ Feature: Test program functions
Then file behave_test/test.rom exists
And file test.rom does not exist

Scenario: Issue #132 Custom output file (-o folder/file)
Scenario: Issue #132 Custom output file (Folder with -o folder/file)
Given I create folder behave_test
Given I write the code to test.asm
"""
Expand All @@ -152,3 +152,31 @@ Feature: Test program functions
When I build test.asm with flag -o behave_test/test_name
Then file behave_test/test_name.rom exists
And file test_name.rom does not exist

Scenario: Issue #132 Custom output file (File with .FILENAME pseudo)
Given I create folder behave_test
Given I write the code to test.asm
"""
.FILENAME "test2"
START MAIN
ROM
MAIN:
ld A,1
"""
When I build test.asm
Then file test2.rom exists
And file test.rom does not exist

Scenario: Issue #132 Custom output file (Folder with .FILENAME pseudo)
Given I create folder behave_test
Given I write the code to test.asm
"""
.FILENAME "behave_test/test_name"
START MAIN
ROM
MAIN:
ld A,1
"""
When I build test.asm
Then file behave_test/test_name.rom exists
And file test_name.rom does not exist

0 comments on commit e0712ba

Please sign in to comment.