-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add addcmp and fld1 tests
- Loading branch information
James Parkinson
committed
Jul 4, 2021
1 parent
676d77d
commit 3f15586
Showing
7 changed files
with
78 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
The built in limits of AWKA - not necessarily limits but initial settings | ||
|
||
AWKA | ||
---- | ||
starting input file buf size 4096 | ||
number of field splits 255 | ||
string split buffer size 400 | ||
sprintf size combination of Nr splits and split buffer | ||
memory page size 256 | ||
code warnings before warn 16 | ||
nr P fileds (NF,RS,RS,CONVFMT,OFMT 5 | ||
input file buf size 4096 (as defined above) | ||
nr scan codes 256 | ||
eval stack size 256 | ||
max number of fields 32767 = 128*256-1 | ||
|
||
LIBAWKA | ||
------- | ||
variable arguments: 254 | ||
sprintf buffer size 2048 | ||
garbage collector bin size 30 | ||
temporary strings size 32 | ||
IO buffer size 16384 | ||
RE max dup size 32767 | ||
RE compiled pattern size 131072 | ||
RE match_2 reported regs size 30 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
BEGIN { | ||
a[0] = 50 | ||
a[1] = "a" | ||
a[2] = "test string" | ||
a[3] = SUBSEP | ||
|
||
for (i=0; i<4; i++) print a[i] + 0 == a[i] | ||
print i + 0 == i | ||
print "s" + 0 == "s" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
1 | ||
0 | ||
0 | ||
0 | ||
1 | ||
0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Test the comparison of numerical and string inputs and checks the | ||
# type setting of input fields | ||
# | ||
# The expected input is lines containing either a string or a numeric value | ||
# | ||
{ | ||
print ($1 + 0) == $1 | ||
} |