lang migration: rename signed integer types sN -> iN
Mechanical sweep of all .sx sources, plan docs, and tests/expected snapshots for the sx language rename (s8/s16/s32/s64 -> i8/i16/i32/i64). Verified: tools/run_tests.sh 23/23. Note: the ios-sim build has 2 pre-existing 'restart' dot-call errors from the sx opt-in UFCS change (sx a47ea14) — independent of this rename (present pre-sweep); migrated in the follow-up commit.
This commit is contained in:
@@ -37,7 +37,7 @@ char_to_gem :: (c: u8) -> Gem {
|
||||
// Load an 8x8 board from `rows` (top row first, each exactly BOARD_COLS chars),
|
||||
// seeded RNG, running score zeroed, and the turn counters reset to a fresh game
|
||||
// (no moves made, the given move budget).
|
||||
load_board :: (rows: []string, seed: s64, move_limit: s64) -> Board {
|
||||
load_board :: (rows: []string, seed: i64, move_limit: i64) -> Board {
|
||||
b : Board = ---;
|
||||
for 0..BOARD_ROWS (row) {
|
||||
line := rows[row];
|
||||
@@ -60,7 +60,7 @@ boards_equal :: (a: *Board, b: *Board) -> bool {
|
||||
// One flag scene: snapshot the board, then count its single round's special
|
||||
// runs and assert the tallies (and the boolean flags derived from them) are
|
||||
// exactly the documented values. No RNG, no clear — pure detection.
|
||||
flag_scene :: (name: string, rows: []string, want_len4: s64, want_len5_plus: s64) {
|
||||
flag_scene :: (name: string, rows: []string, want_len4: i64, want_len5_plus: i64) {
|
||||
print("== {} ==\n", name);
|
||||
b := load_board(rows, 0, LIMIT);
|
||||
out(board_dump(@b));
|
||||
@@ -71,7 +71,7 @@ flag_scene :: (name: string, rows: []string, want_len4: s64, want_len5_plus: s64
|
||||
t.expect(sp.len5_plus == want_len5_plus, concat(name, ": len5_plus count exact"));
|
||||
}
|
||||
|
||||
main :: () -> s32 {
|
||||
main :: () -> i32 {
|
||||
print("== turn (accounting + special-match flagging) ==\n");
|
||||
|
||||
// ── Special-match flagging (single round, no RNG) ──────────────────────
|
||||
|
||||
Reference in New Issue
Block a user