Skip to content

Commit

Permalink
v1.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tbali0524 committed Mar 4, 2024
1 parent 44f10b7 commit 39a9f73
Show file tree
Hide file tree
Showing 28 changed files with 394 additions and 149 deletions.
29 changes: 8 additions & 21 deletions .cgtest.full.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* CGTest v1.12.0 by Balint Toth [TBali]
* CGTest v1.13.0 by Balint Toth [TBali]
* A multi-language offline batch test runner for CodinGame (or other) solo I/O puzzles.
*
* configuration file
Expand All @@ -15,6 +15,7 @@
// == The following default config options can be overriden:
// 'dry-run' => false,
// 'run-only' => false,
// 'alt' => false,
// 'ansi' => true,
// 'verbose' => false,
// 'stats' => false,
Expand Down Expand Up @@ -105,6 +106,10 @@
// 'versionCommand' => 'lang --version',
// 'buildCommand' => '',
// 'runCommand' => 'lang %s',
// 'altVersionCommand' => '',
// 'altBuildCommand' => '',
// 'altRunCommand' => '',
// 'altNote' => '',
// 'cleanPatterns' => [
// 'fileNameWithPathOrPattern',
// ],
Expand All @@ -129,25 +134,6 @@
// %b buildPath
// == Patterns available in 'buildCommand', 'runCommand':
// %s sourceFileName (with path and extension)
// == Example (not really needed here, as these are the default settings for rust):
// 'rust' => [
// 'sourcePath' => 'rust/',
// 'sourceExtension' => '.rs',
// 'codinGameVersion' => 'rustc 1.70.0',
// 'versionCommand' => 'rustc --version',
// 'buildCommand' => 'rustc -C opt-level=3 --edition 2021 %s -o%b%p_%l.exe',
// 'runCommand' => '%b%p_%l.exe',
// 'cleanPatterns' => [
// '%b%p_%l.exe',
// '%b%p_%l.pdb',
// ],
// 'excludePuzzles' => [
// ],
// 'includePuzzles' => [
// ],
// 'runOnlyPuzzles' => [
// ],
// ],
// == Additional test cases for a single language:
'c++' => [
'includePuzzles' => [
Expand Down Expand Up @@ -378,6 +364,7 @@
'easy_com_panel-count',
'easy_com_park-pilot',
'easy_com_parse-sql-queries',
'easy_com_periodic-table-spelling',
'easy_com_personal-best',
'easy_com_pirates-treasure',
'easy_com_popularity-of-each-activity',
Expand Down Expand Up @@ -1061,4 +1048,4 @@
],
],
];
// Note: last puzzle added on 24.02.21: 'easy_com_mystery-malfunction',
// Note: last puzzle added on 24.02.26: 'easy_com_periodic-table-spelling',
26 changes: 17 additions & 9 deletions .cgtest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* CGTest v1.12.0 by Balint Toth [TBali]
* CGTest v1.13.0 by Balint Toth [TBali]
* A multi-language offline batch test runner for CodinGame (or other) solo I/O puzzles.
*
* configuration file
Expand All @@ -15,6 +15,7 @@
// == The following default config options can be overriden:
// 'dry-run' => false,
// 'run-only' => false,
// 'alt' => false,
// 'ansi' => true,
// 'verbose' => false,
// 'stats' => false,
Expand Down Expand Up @@ -104,6 +105,10 @@
// 'versionCommand' => 'lang --version',
// 'buildCommand' => '',
// 'runCommand' => 'lang %s',
// 'altVersionCommand' => '',
// 'altBuildCommand' => '',
// 'altRunCommand' => '',
// 'altNote' => '',
// 'cleanPatterns' => [
// 'fileNameWithPathOrPattern',
// ],
Expand All @@ -128,17 +133,20 @@
// %b buildPath
// == Patterns available in 'buildCommand', 'runCommand':
// %s sourceFileName (with path and extension)
// == Example (not really needed here, as these are the default settings for rust):
// 'rust' => [
// 'sourcePath' => 'rust/',
// 'sourceExtension' => '.rs',
// 'codinGameVersion' => 'rustc 1.70.0',
// 'versionCommand' => 'rustc --version',
// 'buildCommand' => 'rustc -C opt-level=3 --edition 2021 %s -o%b%p_%l.exe',
// == Example (not really needed here, as these are the default settings for c):
// 'c' => [
// 'sourcePath' => 'c/',
// 'sourceExtension' => '.c',
// 'codinGameVersion' => 'gcc 11.2.0-20',
// 'versionCommand' => 'gcc --version',
// 'buildCommand' => 'gcc -lm -lpthread -std=c17 -o %b%p_%l.exe %s',
// 'runCommand' => '%b%p_%l.exe',
// 'altVersionCommand' => 'clang --version',
// 'altBuildCommand' => 'clang -std=c17 -o %b%p_%l.exe %s',
// 'altRunCommand' => '%b%p_%l.exe',
// 'altNote' => '',
// 'cleanPatterns' => [
// '%b%p_%l.exe',
// '%b%p_%l.pdb',
// ],
// 'excludePuzzles' => [
// ],
Expand Down
2 changes: 2 additions & 0 deletions .tests/expected/easy_com_periodic-table-spelling_e01.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CArBON
CaRbON
1 change: 1 addition & 0 deletions .tests/expected/easy_com_periodic-table-spelling_e02.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
KrYPtON
1 change: 1 addition & 0 deletions .tests/expected/easy_com_periodic-table-spelling_e03.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
none
3 changes: 3 additions & 0 deletions .tests/expected/easy_com_periodic-table-spelling_e04.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SNOWY
SNoWY
SnOWY
9 changes: 9 additions & 0 deletions .tests/expected/easy_com_periodic-table-spelling_e05.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
HYPErPAtHOGeNEsIS
HYPErPAtHOGeNeSIS
HYPErPAtHOGeNeSiS
HYPErPAtHoGeNEsIS
HYPErPAtHoGeNeSIS
HYPErPAtHoGeNeSiS
HYPErPaThOGeNEsIS
HYPErPaThOGeNeSIS
HYPErPaThOGeNeSiS
1 change: 1 addition & 0 deletions .tests/expected/easy_com_periodic-table-spelling_e06.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
OBVIOUS
1 change: 1 addition & 0 deletions .tests/expected/easy_com_periodic-table-spelling_e07.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
none
13 changes: 13 additions & 0 deletions .tests/expected/easy_com_periodic-table-spelling_e08.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
CAsINOS
CAsINOs
CAsINoS
CAsInOS
CAsInOs
CaSINOS
CaSINOs
CaSINoS
CaSInOS
CaSInOs
CaSiNOS
CaSiNOs
CaSiNoS
27 changes: 27 additions & 0 deletions .tests/expected/easy_com_periodic-table-spelling_e09.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
HINAuSGeSCHOSSeN
HINAuSGeSCHOsSeN
HINAuSGeSCHoSSeN
HINAuSGeScHOSSeN
HINAuSGeScHOsSeN
HINAuSGeScHoSSeN
HINAuSgEsCHOSSeN
HINAuSgEsCHOsSeN
HINAuSgEsCHoSSeN
HINaUSGeSCHOSSeN
HINaUSGeSCHOsSeN
HINaUSGeSCHoSSeN
HINaUSGeScHOSSeN
HINaUSGeScHOsSeN
HINaUSGeScHoSSeN
HINaUSgEsCHOSSeN
HINaUSgEsCHOsSeN
HINaUSgEsCHoSSeN
HInAuSGeSCHOSSeN
HInAuSGeSCHOsSeN
HInAuSGeSCHoSSeN
HInAuSGeScHOSSeN
HInAuSGeScHOsSeN
HInAuSGeScHoSSeN
HInAuSgEsCHOSSeN
HInAuSgEsCHOsSeN
HInAuSgEsCHoSSeN
48 changes: 48 additions & 0 deletions .tests/expected/easy_com_periodic-table-spelling_e10.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
INNOCUOUSNEsSEs
INNOCUOUSNEsSeS
INNOCUOUSNeSSEs
INNOCUOUSNeSSeS
INNOCUOUSnEsSEs
INNOCUOUSnEsSeS
INNOCuOUSNEsSEs
INNOCuOUSNEsSeS
INNOCuOUSNeSSEs
INNOCuOUSNeSSeS
INNOCuOUSnEsSEs
INNOCuOUSnEsSeS
INNoCUOUSNEsSEs
INNoCUOUSNEsSeS
INNoCUOUSNeSSEs
INNoCUOUSNeSSeS
INNoCUOUSnEsSEs
INNoCUOUSnEsSeS
INNoCuOUSNEsSEs
INNoCuOUSNEsSeS
INNoCuOUSNeSSEs
INNoCuOUSNeSSeS
INNoCuOUSnEsSEs
INNoCuOUSnEsSeS
InNOCUOUSNEsSEs
InNOCUOUSNEsSeS
InNOCUOUSNeSSEs
InNOCUOUSNeSSeS
InNOCUOUSnEsSEs
InNOCUOUSnEsSeS
InNOCuOUSNEsSEs
InNOCuOUSNEsSeS
InNOCuOUSNeSSEs
InNOCuOUSNeSSeS
InNOCuOUSnEsSEs
InNOCuOUSnEsSeS
InNoCUOUSNEsSEs
InNoCUOUSNEsSeS
InNoCUOUSNeSSEs
InNoCUOUSNeSSeS
InNoCUOUSnEsSEs
InNoCUOUSnEsSeS
InNoCuOUSNEsSEs
InNoCuOUSNEsSeS
InNoCuOUSNeSSEs
InNoCuOUSNeSSeS
InNoCuOUSnEsSEs
InNoCuOUSnEsSeS
1 change: 1 addition & 0 deletions .tests/input/easy_com_periodic-table-spelling_i01.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Carbon
1 change: 1 addition & 0 deletions .tests/input/easy_com_periodic-table-spelling_i02.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Krypton
1 change: 1 addition & 0 deletions .tests/input/easy_com_periodic-table-spelling_i03.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Javascript
1 change: 1 addition & 0 deletions .tests/input/easy_com_periodic-table-spelling_i04.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Snowy
1 change: 1 addition & 0 deletions .tests/input/easy_com_periodic-table-spelling_i05.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hyperpathogenesis
1 change: 1 addition & 0 deletions .tests/input/easy_com_periodic-table-spelling_i06.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Obvious
1 change: 1 addition & 0 deletions .tests/input/easy_com_periodic-table-spelling_i07.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Canada
1 change: 1 addition & 0 deletions .tests/input/easy_com_periodic-table-spelling_i08.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Casinos
1 change: 1 addition & 0 deletions .tests/input/easy_com_periodic-table-spelling_i09.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hinausgeschossen
1 change: 1 addition & 0 deletions .tests/input/easy_com_periodic-table-spelling_i10.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Innocuousnesses
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Nothing yet.

## [v1.13.0](https://github.com/tbali0524/cgtest/releases/v1.13.0) - 2024-03-04

### Added

- `--alt` command-line argument added.
- `alt` global configuration option added.
- `altVersionCommand`, `altBuildCommand`, `altRunCommand`, `altNote` configuration options added to the per language section.
- More test cases added.

### Changed

- More color in warnings and error messages.

## [v1.12.0](https://github.com/tbali0524/cgtest/releases/v1.12.0) - 2024-02-24

### Added
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Options:
--help Display this help message
--dry-run Do not run the tests; only show what test cases would run
--run-only Run the tests, but do not evaluate results
--alt Use alternative compiler, if such is defined in the config (e.g. for c, c++, php)
--ansi Use color output [default]
--no-ansi Disable color output
--verbose Increase the verbosity of messages: also show each passed tests
Expand Down
1 change: 1 addition & 0 deletions c/medium_com_rubik.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// https://www.codingame.com/training/medium/rubik%C2%AE

#define _CRT_SECURE_NO_WARNINGS // not needed in CG
#include <stdio.h>
int main()
{
Expand Down
Loading

0 comments on commit 39a9f73

Please sign in to comment.