Skip to content

Commit

Permalink
Detect floating-point scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
senekor committed Dec 12, 2023
1 parent f8072c8 commit 923efaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exercises/practice/triangle/.meta/test_template.tera
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use triangle::Triangle;

#[test]
#[ignore]
{% if test.description is containing("float") %}
{% if test.scenarios and test.scenarios is containing("floating-point") %}
#[cfg(feature = "generic")]
{% endif -%}
fn {{ test.description | slugify | replace(from="-", to="_") }}() {
Expand All @@ -51,7 +51,7 @@ use triangle::Triangle;

#[test]
#[ignore]
{% if test.description is containing("float") %}
{% if test.scenarios and test.scenarios is containing("floating-point") %}
#[cfg(feature = "generic")]
{% endif -%}
fn {{ test.description | slugify | replace(from="-", to="_") }}() {
Expand All @@ -73,7 +73,7 @@ use triangle::Triangle;

#[test]
#[ignore]
{% if test.description is containing("float") %}
{% if test.scenarios and test.scenarios is containing("floating-point") %}
#[cfg(feature = "generic")]
{% endif -%}
fn {{ test.description | slugify | replace(from="-", to="_") }}() {
Expand Down

0 comments on commit 923efaf

Please sign in to comment.