From 2a662250d4b12a6dfdc488ec369439101fac209c Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Wed, 20 Jun 2018 00:59:01 +0200 Subject: [PATCH] nimpretty: added more code claimed to not be working --- nimpretty/tests/exhaustive.nim | 13 +++++++++++++ nimpretty/tests/expected/exhaustive.nim | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/nimpretty/tests/exhaustive.nim b/nimpretty/tests/exhaustive.nim index bca42d4d45..0ce3bde895 100644 --- a/nimpretty/tests/exhaustive.nim +++ b/nimpretty/tests/exhaustive.nim @@ -285,3 +285,16 @@ proc starWasExportMarker*(em: var Emitter) = setLen(em.content, em.content.len-3) em.content.add("*") dec em.col, 2 + +type + Thing = ref object + grade: string + # this name is great + name: string + +proc f() = + var c: char + var str: string + if c == '\\': + # escape char + str &= c diff --git a/nimpretty/tests/expected/exhaustive.nim b/nimpretty/tests/expected/exhaustive.nim index 4520fb9bdd..dd3ff74e89 100644 --- a/nimpretty/tests/expected/exhaustive.nim +++ b/nimpretty/tests/expected/exhaustive.nim @@ -292,3 +292,16 @@ proc starWasExportMarker*(em: var Emitter) = setLen(em.content, em.content.len-3) em.content.add("*") dec em.col, 2 + +type + Thing = ref object + grade: string + # this name is great + name: string + +proc f() = + var c: char + var str: string + if c == '\\': + # escape char + str &= c