Skip to content

Commit

Permalink
Added a test for #2609
Browse files Browse the repository at this point in the history
  • Loading branch information
harawata committed Jul 11, 2022
1 parent 7e96b10 commit d081405
Showing 1 changed file with 9 additions and 1 deletion.
@@ -1,5 +1,5 @@
/*
* Copyright 2009-2021 the original author or authors.
* Copyright 2009-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -50,4 +50,12 @@ class DataClass {
}
executor.shutdown();
}

@Test
void issue2609() throws Exception {
Map<String, Object> context = new HashMap<>();
context.put("d1", java.sql.Date.valueOf("2022-01-01"));
context.put("d2", java.sql.Date.valueOf("2022-01-02"));
assertEquals(-1, OgnlCache.getValue("d1.compareTo(d2)", context));
}
}

0 comments on commit d081405

Please sign in to comment.