Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit88294f9

Browse files
tests: fix typos, grammar, punctuation
1 parent0efce32 commit88294f9

File tree

8 files changed

+15
-15
lines changed

8 files changed

+15
-15
lines changed

‎tests/00_unit_tests.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ set -e
1313
LIST=${1:-opcodes opcodes_s2 assemble link util preprocess definesdb decode decode_s2}
1414

1515
forfilein$LIST;do
16-
echotesting$file...
16+
echoTesting$file...
1717
micropython$file.py
1818
done

‎tests/01_compat_tests.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ run_tests_for_cpu() {
3636
forsrc_filein$(ls -1 compat/*.S fixtures/*.S);do
3737
src_name="${src_file%.S}"
3838

39-
#files with acpu encoded into their name are only run for thatcpu
39+
#Files with aCPU encoded into their name are only run for thatCPU
4040
if [[$src_file=~\.esp32\.&&$cpu!= esp32 ]]|| [[$src_file=~\.esp32s2?\.&&$cpu!= esp32s2 ]];then
4141
continue
4242
fi

‎tests/02_compat_rtc_tests.sh‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ run_tests_for_cpu() {
130130

131131
LIST=$(echo binutils-gdb/gas/testsuite/gas/esp32ulp/$cpu/*.s)
132132
if [$cpu= esp32 ];then
133-
#append extra tests to test preprocessor
134-
#examples have constants specific toESP32 (original)
135-
# so we only run these tests withcpu = esp32
136-
#these tests primarilytest our preprocessor, which is
137-
#cpuindependent, so we do not need to run them
138-
#per eachcpu.
133+
#Append extra tests to test the preprocessor
134+
#Examples have constants specific totheoriginal ESP32,
135+
# so we only run these tests withCPU = esp32.
136+
#These tests primarilyexercise our preprocessor, which is
137+
#CPU-independent, so we do not need to run them
138+
#for eachCPU.
139139
LIST=$(echo ulptool/src/ulp_examples/*/*.s$LIST)
140140
fi
141141

‎tests/assemble.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_parse_line():
6262

6363
deftest_parse_labels_correctly():
6464
"""
65-
description of what defines a label
65+
Description of what defines a label
6666
https://sourceware.org/binutils/docs/as/Statements.html
6767
https://sourceware.org/binutils/docs/as/Labels.html
6868
"""
@@ -168,7 +168,7 @@ def test_assemble_uppercase_opcode():
168168
assertnotraised
169169

170170

171-
deftest_assemble_evalulate_expressions():
171+
deftest_assemble_evaluate_expressions():
172172
src_w_expr="""\
173173
.set shft, 2
174174
.set loops, (1 << shft)
@@ -300,7 +300,7 @@ def test_support_multiple_statements_per_line():
300300
test_assemble_bss_with_value()
301301
test_assemble_global()
302302
test_assemble_uppercase_opcode()
303-
test_assemble_evalulate_expressions()
303+
test_assemble_evaluate_expressions()
304304
test_assemble_optional_comment_removal()
305305
test_assemble_test_regressions_from_evaluation()
306306
test_support_multiple_statements_per_line()

‎tests/decode.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_empty_instruction():
7373
# instruction offset encoded in the binary instruction will be in
7474
# words (1 word = 4 bytes).
7575
# The disassembled instructions would therefore show as "JUMP 1"
76-
# for what was originally "JUMP 4" in the source code.@test
76+
# for what was originally "JUMP 4" in the source code.
7777
@test
7878
deftest_all_instructions():
7979
# OPCODE_WR_REG = 1

‎tests/decode_s2.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_empty_instruction():
7373
# instruction offset encoded in the binary instruction will be in
7474
# words (1 word = 4 bytes).
7575
# The disassembled instructions would therefore show as "JUMP 1"
76-
# for what was originally "JUMP 4" in the source code.@test
76+
# for what was originally "JUMP 4" in the source code.
7777
@test
7878
deftest_all_instructions():
7979
# OPCODE_WR_REG = 1

‎tests/opcodes.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_get_cond():
8383
deftest_eval_arg():
8484
opcodes.symbols=SymbolTable({}, {}, {})
8585
opcodes.symbols.set_sym('const',ABS,None,42)# constant
86-
opcodes.symbols.set_sym('raise',ABS,None,99)# constant using apython keyword as name (isallowed)
86+
opcodes.symbols.set_sym('raise',ABS,None,99)# constant using aPython keyword asaname (allowed)
8787

8888
asserteval_arg('1+1')==2
8989
asserteval_arg('1+const')==43

‎tests/opcodes_s2.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_get_cond():
8383
deftest_eval_arg():
8484
opcodes.symbols=SymbolTable({}, {}, {})
8585
opcodes.symbols.set_sym('const',ABS,None,42)# constant
86-
opcodes.symbols.set_sym('raise',ABS,None,99)# constant using apython keyword as name (isallowed)
86+
opcodes.symbols.set_sym('raise',ABS,None,99)# constant using aPython keyword asaname (allowed)
8787

8888
asserteval_arg('1+1')==2
8989
asserteval_arg('1+const')==43

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp