Add Compatibility test#12
Merged
fallenwood merged 4 commits intomasterfrom Jan 31, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #12 +/- ##
=======================================
Coverage 83.99% 83.99%
=======================================
Files 10 10
Lines 3161 3161
Branches 544 544
=======================================
Hits 2655 2655
Misses 361 361
Partials 145 145 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new Rust baseline project and a set of template test cases for compatibility testing, along with corresponding template files and initial C# rewrite implementations for some cases. The main focus is to set up a framework for comparing template rendering between Rust (using
minijinja) and C# (usingMiniJinja). The most important changes are as follows:Baseline Rust Project Setup:
compatibility/baselinewith aCargo.tomlspecifyingminijinjaas a dependency, and a.gitignoreto exclude build artifacts. [1] [2]src/main.rsto execute and render 12 different template cases usingminijinja, each demonstrating a different template feature (e.g., inheritance, loops, filters, macros).Template Test Cases:
compatibility/cases/case0throughcase11, each illustrating a specific template feature such as variable interpolation, inheritance, loops, filters, conditionals, macros, and nested loops. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]Editor Configuration:
.editorconfigto specify that.txtfiles should not have a final newline, ensuring consistency in template file formatting.C# Rewrite Implementations:
Case0,Case1, andCase10incompatibility/rewrite/, each loading the corresponding template(s) and rendering them using theMiniJinjalibrary, mirroring the Rust test cases. [1] [2] [3]