Skip to content

Releases: codecrafters-io/grep-tester

v46

03 Sep 00:36
1df51c9
Compare
Choose a tag to compare

Changelog

1df51c9 Merge pull request #57 from codecrafters-io/andy/fix-2
70a335e refactor: rename randomWordsNoSubstrings to randomWordsWithoutSubstrings for consistency across test cases
d60c087 refactor: replace random word generation with non-substring variant in multiple test cases

v45

28 Aug 16:04
01c9cef
Compare
Choose a tag to compare
v45

Changelog

01c9cef Merge pull request #55 from codecrafters-io/andy/tweak-2
edbe821 feat: add grep binary and update test input patterns for end-of-string anchor tests
63b9b15 refactor: update input patterns in start and end of string anchor tests to include underscores for better clarity
2a15d50 refactor: enhance end-of-string anchor tests with additional random words and updated input patterns

v44

20 Aug 15:30
41ee7d7
Compare
Choose a tag to compare
v44

Changelog

41ee7d7 Merge pull request #52 from codecrafters-io/andy/add-testcase
b96c9ab chore: update fixture workflow to use the master branch for tester-utils
e336ca8 ci: add regenerated fixtures
f5a4ad3 chore: update fixture workflow to use specific branch for tester-utils
b4298e0 feat: add support for letters outside words in positive character group tests and update test cases
5e66fad Merge pull request #54 from codecrafters-io/try-moving-with-sudo
edd2beb Merge pull request #53 from codecrafters-io/andy/add-testcase-2
b44835b update comments to clarify sudo usage in CI environment for system commands
211d50d Add sudo fallback for moving grep in RelocateSystemGrep and restoreSystemGrep functions
8481bb3 refactor: update end-of-string anchor tests to use dynamic random words for improved coverage

v43

02 Aug 05:37
5dc649c
Compare
Choose a tag to compare
v43

Changelog

5dc649c Merge pull request #49 from codecrafters-io/andy/fix
055786b refactor: enhance special character handling in alphanumeric tests and update test cases for consistency

v42

28 Jul 16:28
d31af0f
Compare
Choose a tag to compare
v42

Changelog

d31af0f Merge pull request #47 from codecrafters-io/ryan/fixes
6c778af refactor: update regex patterns in test logs to use '+' quantifier for consistency in matching
c55a569 fix: improve logging message in file search tests for clarity on missing matches
c46f727 refactor: update regex patterns in file search tests to use '+' quantifier for improved matching
be455df Merge pull request #43 from codecrafters-io/update-tester-utils
11e58ec refactor: update logger prefix methods in file writing utility for consistency
8d0022a Update tester-utils to v0.4.5
3f4298d Update tester-utils to v0.4.5

v41

15 Jul 11:31
031bd91
Compare
Choose a tag to compare
v41

Changelog

031bd91 Merge pull request #46 from codecrafters-io/fix-anticheat
8cabb51 refactor: remove redundant anti-cheat test cases for quantifier patterns to streamline testing
42bb45c refactor: simplify Run method in AntiCheatTestCase by removing matchCount and streamlining error handling
623d7e1 feat: implement Run method for AntiCheatTestCase and update argument flag in executable run

v40

14 Jul 18:54
07c40f4
Compare
Choose a tag to compare
v40

Changelog

07c40f4 Merge pull request #45 from codecrafters-io/fix-anti-cheat-1
3104fb6 test: add new anti-cheat test cases for quantifier patterns and improve failure handling

v39

14 Jul 18:38
fa6799e
Compare
Choose a tag to compare
v39

Changelog

fa6799e Merge pull request #44 from codecrafters-io/fix-anti-cheat
557fbfd fix: correct argument flag in executable run method for anti-cheat test cases

v38

10 Jul 11:38
09dcf5d
Compare
Choose a tag to compare
v38

Changelog

09dcf5d Merge pull request #38 from codecrafters-io/file-search
ff184fe refactor: enhance vegetable selection in file search tests for improved test diversity
19a5b95 refactor: enhance random fruit selection in file search tests for better test coverage
f6991a0 refactor: replace matcher interface with backrefMatcher pointer in grep implementation for improved type safety
20c8bad refactor: adjust random element selection in file search tests for more controlled test scenarios
3d1574d chore: add test_all target to run multiple grep tests sequentially
0ac4ca7 refactor: update test fixture logs for consistency in output and error reporting
80430fb refactor: optimize error message handling in file search tests for clarity and efficiency
32b1d17 refactor: simplify error message construction in file search tests for improved readability
351bddd refactor: update error handling in file creation tests to use panic for internal errors
5ae83aa refactor: improve regex patterns in stages tests for enhanced output matching and flexibility
49dd0c3 refactor: remove sudo from system grep relocation commands for improved portability
f5b37ff ci: add regenerated fixtures
a9c33e3 refactor: update system grep relocation commands to use sudo for proper permissions
c963312 refactor: refine regex patterns in stages tests for better output normalization and flexibility
fad9bc9 refactor: adjust regex patterns in stages tests to accommodate varying output formats for improved normalization
70defb7 refactor: enhance regex patterns in stages tests to improve output normalization and validation
ae61690 refactor: update success logging in test cases to use checkmark symbol for consistency and improved readability
e028b9e refactor: standardize log output messages in test fixtures for consistency and clarity
4a261dc refactor: enhance FileTestCase structure by adding recursive flag for improved search functionality in grep tests
01df3a0 refactor: simplify stdout validation in grep tests by comparing entire output strings instead of line-by-line checks
b08136b refactor: update success logging in test cases to use checkmark symbol for improved readability
59e37f8 refactor: replace SearchStdin and SearchFiles with EmulateGrep for improved test consistency and functionality
ac84d39 test: implement comprehensive test suite for grep functionality, covering stdin and file search scenarios with various regex patterns and expected results
32600b4 refactor: remove unused grep dependency and streamline exit code validation in AntiCheatTestCase
b960a97 test: add new scenarios for handling extra and missing logs in stages tests with appropriate configurations
f788760 refactor: improve logging messages in FileSearchTestCase for clarity and consistency in output validation
0313948 feat: add scenarios for handling missing and extra logs with updated test scripts and configuration
c0b92a1 refactor: update output validation in FileSearchTestCase to use slices for improved line comparison and reporting
e3e21e7 refactor: add ExpectedExitCode to anti-cheat test cases and improve exit code validation logic
60b1c91 fix: correct ExpectedExitCode for zero-or-one quantifier test case to reflect accurate validation
037d812 refactor: add ExpectedExitCode to test cases across various stages for enhanced validation
5994179 refactor: enhance StdinTestCase with ExpectedExitCode and improve exit code validation logic
8554a99 refactor: add ExpectedExitCode field to test cases in stage file search functions for improved validation
a8b3c46 refactor: add ExpectedExitCode field to FileSearchTestCase and improve exit code validation in test cases
b6acccf refactor: unify test case collection variable naming for consistency across test functions
13fd2b7 refactor: simplify searchDirectory function by removing unnecessary options parameter for improved clarity
b3fc070 refactor: remove grep_test.go file to streamline test cases and improve code organization
f851f98 refactor: replace SearchStdin and SearchFiles with EmulateGrep in test cases for improved consistency and clarity
2e5d220 refactor: enhance grep functionality by updating Result structure and simplifying argument parsing in EmulateGrep
ac0b897 refactor: simplify grep options in search functions and update test cases for consistency
acc14ff refactor: update Run method signatures in test case collections for improved clarity and consistency
2d7b0a1 chore: update .gitignore to remove internal-docs and cmd/mygrep, and add .claude for better file management
2e9d161 refactor: improve error messages in file search tests for better clarity and add utility function to map lines to indices
3613421 docs: add comments to FRUITS and VEGETABLES constants and randomFilePrefix function for better understanding of their usage
a0085db docs: add comments to CreateTestFiles and writeFiles functions for improved clarity and understanding of their purpose
8cdd6ba refactor: remove runtime check for Darwin in RelocateSystemGrep function, simplifying the code logic
c082aea refactor: rename TestCase interface to TestCaseCollection for improved clarity and consistency in test case management
8192583 feat: add RelocateSystemGrep and restoreSystemGrep functions to manage system grep binary relocation, enhancing test case harness functionality
cbb2f2c refactor: replace strconv with randomFilePrefix function for generating file names in search tests, improving code clarity and consistency
7c78f4f refactor: remove unused options and related logic from grep implementation, streamlining the codebase
5e10580 refactor: clean up comments in test cases for clarity and maintainability
30be206 chore: remove grep tool, we have moved to an internal package
2f51c5e test: update file search test fixtures to use new fruit and vegetable files, enhancing test coverage and accuracy
462ee19 refactor: enhance file search tests by generating random file names and contents for improved test variability
78b125b test: implement dedicated file test function for grep, enhancing test organization and clarity
cc36c11 refactor: restructure grep test cases to use dedicated test case types for stdin and file searches, enhancing readability and maintainability
65e5ff2 test: add comprehensive test suite for grep functionality covering stdin and file search with various regex patterns and options
805ed28 refactor: update anti-cheat test case structure to use a collection method for improved readability and execution
62a504e refactor: consolidate anti-cheat test case execution into a collection method for improved structure and error handling
4eeff10 refactor: integrate internal grep implementation for expected results in anti-cheat test case
634cd41 fix: update expected exit code for anti cheat test case
2701399 refactor: update test fixtures to replace 'apple' with 'banana' and adjust grep commands for improved test accuracy
1cd48be feat: add initial grep binaries and shell script for platform-specific execution
3b67a58 feat: implement core grep functionality with support for regex matching, backreferences, and file search capabilities
b2173ac refactor: clean up test case formatting and remove unnecessary expected exit codes for improved readability and maintainability
239eecb refactor: update test cases to utilize internal grep implementation for expected results in file and stdin tests
6d603cd refactor: streamline matcher and configuration by removing unused options and simplifying match logic
6142f4c refactor: simplify matcher implementation by removing invertMatch logic and consolidating scanning functionality
99859ee feat: refactor grep functionality to use matcher interface for improved extensibility and maintainability
7733327 feat: add support for backreferences in grep functionality with new search methods for stdin and files
b26623a feat: implement base stages in grep-go
8e767d2 feat: introduce dynamic test file generation with random fruits and vegetables for enhanced test coverage in file search functionality
cb6fbb2 refactor: clean up whitespace and improve test case formatting in stage_match_alphanumeric and stage_positive_character_groups for better readability
484dd0d refactor: remove success test fixture for backreferences_multiple to streamline test cases and improve maintainability
b8675b4 Merge branch 'main' into file-search
a542222 refactor: remove unused logger parameter from CreateTestFiles calls in file search test functions for improved clarity
b8a374f refactor: enhance file search test case structure by introducing ShouldEnableRecursiveFlag for improved clarity and consistency
c098b51 refactor: update test case structures to use StdinTestCaseCollection and FileSearchTestCaseCollection for consistency across all test functions
0b81a1b refactor: consolidate test case structures by introducing FileSearchTestCaseCollection and StdinTestCaseCollection for improved consistency and maintainability
90d3a72 chore: update .gitignore to exclude docs/ and include internal-docs/; remove outdated documentation files for cleaner project structure
79f0d0b chore: improve comments in find_grep_linux.sh and update docker run commands in test.sh for clarity
6febba5 refactor: clarify error message in file search test case for improved readability
5e2e158 refactor: update fruit and vegetable setup commands in test fixtures for consistency
7716a3c refactor: update regex in normalizeTesterOutput for improved output matching in stages tests
3d82a95 refactor: replace MoveGrepToTemp with RelocateSystemGrep in multiple test functions for improved clarity and consistency
2bf7cf5 refactor: rename and enhance grep relocation functions for clarity and improved teardown handling
5c4cef3 refactor: update test case structure to use StdinTestCases and FileSearchTestCases for consistency across multiple test functions
4a14705 chore: update .gitignore to include .idea/, dist/, and docs/ directories for better project management
f359872 refactor: enhance test case structure by impleme...

Read more

v37

07 Jul 17:39
d5684b7
Compare
Choose a tag to compare
v37

Changelog

d5684b7 Merge pull request #41 from codecrafters-io/andy/fix
e283bef Update test fixtures to replace input strings with "blueberry" and "BANANA", and standardize numeric inputs to "650" across multiple test cases, enhancing consistency in expected outcomes.
d72e7cc Merge pull request #39 from codecrafters-io/andy/tweak
0827972 Merge pull request #40 from codecrafters-io/andy/fix
5bf3fd8 Update test cases to swap input and pattern for consistency across multiple fixtures, ensuring accurate regex testing. This change enhances clarity and maintains uniformity in test expectations.
7c75bd4 Refactor testPositiveCharacterGroups to utilize pickLettersOutsideWord for improved letter selection. Update test cases to reflect changes in input patterns and enhance test coverage with dynamic examples across multiple fixtures.
99debee Refactor testPositiveCharacterGroups to use dynamic patterns and inputs from random words, enhancing test case variability. Introduce pickLetterOutsideWord function to select letters not present in the given word.
bae6702 ci: add regenerated fixtures
ff94069 Refactor special characters in alphanumeric matching test to reduce variety, focusing on a more streamlined set for improved test clarity.
ffb81ab Update test fixtures to replace fruit names with "apple" and "BLUEBERRY", and standardize numeric inputs to "234" across multiple test cases, enhancing consistency in expected outcomes.
fec1df8 ci: add regenerated fixtures
f0a3d14 Refactor alphanumeric matching test cases to utilize random inputs and special characters, enhancing coverage and variability in expected outcomes across multiple fixtures.
7e47167 Enhance test coverage by adding a new test case for the regex pattern "[abcd]" with input "[]" and expected exit code 1.
470098d Update test cases for alphanumeric matching to include additional inputs "Word", "123 456", and "$!?" with expected exit code 0 across multiple fixtures.