From 3440d6c855dea2f75188cf9cd5be4c62219c39a5 Mon Sep 17 00:00:00 2001 From: George Dietrich Date: Mon, 2 May 2022 21:21:26 -0400 Subject: [PATCH] Enable extra Ameba rule and fix usages (#174) --- spec/visitors/json_deserialization_visitor_spec.cr | 2 +- spec/visitors/yaml_deserialization_visitor_spec.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/visitors/json_deserialization_visitor_spec.cr b/spec/visitors/json_deserialization_visitor_spec.cr index 7a4dd50..6ff22ab 100644 --- a/spec/visitors/json_deserialization_visitor_spec.cr +++ b/spec/visitors/json_deserialization_visitor_spec.cr @@ -16,7 +16,7 @@ describe ASR::Visitors::JSONDeserializationVisitor do it Int64 do assert_deserialized_output ASR::Visitors::JSONDeserializationVisitor, Int64, "17", 17_i64 assert_deserialized_output ASR::Visitors::JSONDeserializationVisitor, Int64?, "17", 17_i64 - assert_deserialized_output ASR::Visitors::JSONDeserializationVisitor, Int64?, "1033488268764", 1033488268764 + assert_deserialized_output ASR::Visitors::JSONDeserializationVisitor, Int64?, "1033488268764", 1_033_488_268_764 end it Float32 do diff --git a/spec/visitors/yaml_deserialization_visitor_spec.cr b/spec/visitors/yaml_deserialization_visitor_spec.cr index 29b0c9c..f747a5f 100644 --- a/spec/visitors/yaml_deserialization_visitor_spec.cr +++ b/spec/visitors/yaml_deserialization_visitor_spec.cr @@ -16,7 +16,7 @@ describe ASR::Visitors::YAMLDeserializationVisitor do it Int64 do assert_deserialized_output ASR::Visitors::YAMLDeserializationVisitor, Int64, "17", 17_i64 assert_deserialized_output ASR::Visitors::YAMLDeserializationVisitor, Int64?, "17", 17_i64 - assert_deserialized_output ASR::Visitors::YAMLDeserializationVisitor, Int64?, "1033488268764", 1033488268764 + assert_deserialized_output ASR::Visitors::YAMLDeserializationVisitor, Int64?, "1033488268764", 1_033_488_268_764 end it Float32 do