From eba673e7f5e0ad0ee9578d0e1e4ef1eddef688a2 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Tue, 15 Dec 2015 11:13:26 +0300 Subject: [PATCH] Add two unit tests for invalid syntaxes in the command --- test/unit/facedesc-invalid-syntax/attributes/cmd | 1 + test/unit/facedesc-invalid-syntax/attributes/error | 1 + test/unit/facedesc-invalid-syntax/bg-color/cmd | 1 + test/unit/facedesc-invalid-syntax/bg-color/error | 1 + 4 files changed, 4 insertions(+) create mode 100644 test/unit/facedesc-invalid-syntax/attributes/cmd create mode 100644 test/unit/facedesc-invalid-syntax/attributes/error create mode 100644 test/unit/facedesc-invalid-syntax/bg-color/cmd create mode 100644 test/unit/facedesc-invalid-syntax/bg-color/error diff --git a/test/unit/facedesc-invalid-syntax/attributes/cmd b/test/unit/facedesc-invalid-syntax/attributes/cmd new file mode 100644 index 00000000..9fe13eb7 --- /dev/null +++ b/test/unit/facedesc-invalid-syntax/attributes/cmd @@ -0,0 +1 @@ +:face Default default,default+ diff --git a/test/unit/facedesc-invalid-syntax/attributes/error b/test/unit/facedesc-invalid-syntax/attributes/error new file mode 100644 index 00000000..47129cc0 --- /dev/null +++ b/test/unit/facedesc-invalid-syntax/attributes/error @@ -0,0 +1 @@ +'exec' 1:1: 'face' invalid face description, expected [,][+] diff --git a/test/unit/facedesc-invalid-syntax/bg-color/cmd b/test/unit/facedesc-invalid-syntax/bg-color/cmd new file mode 100644 index 00000000..ba02d10d --- /dev/null +++ b/test/unit/facedesc-invalid-syntax/bg-color/cmd @@ -0,0 +1 @@ +:face Default default, diff --git a/test/unit/facedesc-invalid-syntax/bg-color/error b/test/unit/facedesc-invalid-syntax/bg-color/error new file mode 100644 index 00000000..47129cc0 --- /dev/null +++ b/test/unit/facedesc-invalid-syntax/bg-color/error @@ -0,0 +1 @@ +'exec' 1:1: 'face' invalid face description, expected [,][+]