Skip to content

Commit a2d03a1

Browse files
authored
Merge pull request #409 from boriel/feature/standardize-grammar
Rename zxb.py to zxbc.py in libzxbc
2 parents a53d73f + 10d5cde commit a2d03a1

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/libzxbc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
# ----------------------------------------------------------------------
1111

1212
from src.outfmt import CodeEmitter # noqa
13-
from .zxb import main # noqa
13+
from .zxbc import main # noqa
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def output(memory, ofile=None):
6969

7070
def main(args=None, emitter=None):
7171
""" Entry point when executed from command line.
72-
You can use zxb.py as a module with import, and this
72+
You can use zxbc.py as a module with import, and this
7373
function won't be executed.
7474
"""
7575
src.api.config.init()

tests/cmdline/test_zxb.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
import pytest
4-
from src.libzxbc import zxb
4+
from src.libzxbc import zxbc
55
import os
66

77
PATH = os.path.realpath(os.path.dirname(os.path.abspath(__file__)))
@@ -39,13 +39,13 @@ def test_compile_only(file_bas, file_bin):
3939
""" Should not generate a file
4040
"""
4141
with EnsureRemoveFile(file_bin):
42-
zxb.main(['--parse-only', file_bas, '-o', file_bin])
42+
zxbc.main(['--parse-only', file_bas, '-o', file_bin])
4343
assert not os.path.isfile(file_bin), 'Should not create file "empty.bin"'
4444

4545

4646
def test_org_allows_0xnnnn_format(file_bas, file_bin):
4747
""" Should allow hexadecimal format 0x in org
4848
"""
4949
with EnsureRemoveFile(file_bin):
50-
zxb.main(['--parse-only', '--org', '0xC000', file_bas, '-o', file_bin])
51-
assert zxb.OPTIONS.org == 0xC000, 'Should set ORG to 0xC000'
50+
zxbc.main(['--parse-only', '--org', '0xC000', file_bas, '-o', file_bin])
51+
assert zxbc.OPTIONS.org == 0xC000, 'Should set ORG to 0xC000'

0 commit comments

Comments
 (0)