From 82456f83ee8a05de85b945167e6bd1fddb7d06f9 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Thu, 12 May 2016 16:35:54 -0500 Subject: [PATCH] Fix Menu declaration test --- src/tools/test/Menu.plt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/tools/test/Menu.plt b/src/tools/test/Menu.plt index f8da94b97..1985fdf16 100644 --- a/src/tools/test/Menu.plt +++ b/src/tools/test/Menu.plt @@ -25,8 +25,9 @@ ok !$menu->legal_choice('Choice 3'), 'Third choice not legal'; is_deeply $menu->choice(2), undef, 'Third choice undefined'; like $menu->toDeclaration, qr/ ^ - \s* typedef \s+ enum \s+ { - \s+ ch1 \s+ \/\* [^*]* \*\/, - \s+ ch2 \s+ \/\* [^*]* \*\/, - \s+ test_NUM_CHOICES ,? - \s+ } \s+ test; \s* $ /x, 'C declaration'; + \s* typedef \s+ enum \s+ \{ \s* \n + \s* ch1 \s+ \/\* [^*]* \*\/, \s* \n + \s* ch2 \s+ \/\* [^*]* \*\/ \s* \n + \s* \} \s* test \s* ; \s* \n + \s* \# \s* define \s+ test_NUM_CHOICES \s+ 2 \s* \n + \s* $ /x, 'C declaration';