Skip to content

Commit

Permalink
fix: Broken test in master [DHIS2-18665]
Browse files Browse the repository at this point in the history
  • Loading branch information
maikelarabori committed Dec 19, 2024
1 parent 476cb6e commit cfc0573
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -551,14 +551,14 @@ void testBooleanAsNumeric() {
@Test
void testBooleanAsBoolean() {
assertEquals(
"coalesce(case when ax.\"ps\" = 'ProgrmStagA' then \"DataElmentG\" else null end::numeric!=0,false)",
"coalesce(case when ax.\"ps\" = 'ProgrmStagA' then \"DataElmentG\" else null end::numeric != 0,false)",
filter("#{ProgrmStagA.DataElmentG}"));
}

@Test
void testBooleanAsBooleanWithinIf() {
assertEquals(
" case when coalesce(case when ax.\"ps\" = 'ProgrmStagA' then \"DataElmentG\" else null end::numeric!=0,false) then 4 else 5 end",
" case when coalesce(case when ax.\"ps\" = 'ProgrmStagA' then \"DataElmentG\" else null end::numeric != 0,false) then 4 else 5 end",
sql("if(#{ProgrmStagA.DataElmentG},4,5)"));
}

Expand Down

0 comments on commit cfc0573

Please sign in to comment.