From b320d35cf7a447da396293b1446888784ff4ec58 Mon Sep 17 00:00:00 2001 From: belliash Date: Mon, 8 Apr 2019 10:32:31 +0200 Subject: [PATCH] Test char to int conversion. --- tests/printf_test.aer | 1 + tests/printf_test.exp | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/printf_test.aer b/tests/printf_test.aer index a5f802c..955b91d 100644 --- a/tests/printf_test.aer +++ b/tests/printf_test.aer @@ -22,6 +22,7 @@ class Program { private void testNumbers() { printf("%%b = '%b'\n", $this->n); printf("%%c = '%c'\n", $this->c); + printf("%%d = '%d'\n", $this->c); printf("%%d = '%d'\n", $this->n); printf("%%e = '%e'\n", $this->n); printf("%%u = '%u'\n", $this->n); diff --git a/tests/printf_test.exp b/tests/printf_test.exp index a1d8c18..6b3128e 100644 --- a/tests/printf_test.exp +++ b/tests/printf_test.exp @@ -6,6 +6,7 @@ [many monke] %b = '10100111101010011010101101' %c = 'A' +%d = '65' %d = '43951789' %e = '4.395179e+07' %u = '43951789'