Support trailing slashes in paths

Making the trailing slash a part of the AST will help us implement
path completion.

Change-Id: I64b34634a0affef4046325c29d2767120ece9d37
diff --git a/tests/cd.cpp b/tests/cd.cpp
index 85ea794..71eb6bb 100644
--- a/tests/cd.cpp
+++ b/tests/cd.cpp
@@ -39,13 +39,29 @@
         {
             SECTION("example:a")
             {
-                input = "cd example:a";
+                SECTION("trailing slash")
+                {
+                    input = "cd example:a/";
+                    expected.m_path.m_trailingSlash = TrailingSlash::Present;
+                }
+                SECTION("no trailing slash")
+                {
+                    input = "cd example:a";
+                }
                 expected.m_path.m_nodes.push_back(dataNode_(module_{"example"}, container_("a")));
             }
 
             SECTION("second:a")
             {
-                input = "cd second:a";
+                SECTION("trailing slash")
+                {
+                    input = "cd second:a/";
+                    expected.m_path.m_trailingSlash = TrailingSlash::Present;
+                }
+                SECTION("no trailing slash")
+                {
+                    input = "cd second:a";
+                }
                 expected.m_path.m_nodes.push_back(dataNode_(module_{"second"}, container_("a")));
             }