Commits

Clark C. Evans committed a0d2c0b

update tutorial tests to reflect :as change

Comments (0)

Files changed (3)

test/input/tutorial.yaml

   - uri: /program{school, code, title}
   - uri: /department{name-, school}
   - uri: /course{department+, number, credits-, title}
-  - uri: /course{department as 'Dept Code'+, number as 'No.',
+  - uri: /course{department+ :as 'Dept Code', number as 'No.',
                  credits-, title}
   # Linking Data
   - uri: /program{school.name, title}

test/output/pgsql.yaml

                     "course"."title"
              FROM "ad"."course" AS "course"
              ORDER BY 1 ASC, 3 DESC NULLS LAST, 2 ASC
-        - uri: /course{department as 'Dept Code'+, number as 'No.', credits-, title}
+        - uri: /course{department+ :as 'Dept Code', number as 'No.', credits-, title}
           status: 200 OK
           headers:
           - [Content-Type, text/plain; charset=UTF-8]
                                                                     (100 rows)
 
              ----
-             /course{department:as('Dept Code')+,number:as('No.'),credits-,title}
+             /course{department+:as('Dept Code'),number:as('No.'),credits-,title}
              SELECT "course"."department",
                     "course"."number",
                     "course"."credits",

test/output/sqlite.yaml

                     "course"."title"
              FROM "course" AS "course"
              ORDER BY 1 ASC, 3 DESC, 2 ASC
-        - uri: /course{department as 'Dept Code'+, number as 'No.', credits-, title}
+        - uri: /course{department+ :as 'Dept Code', number as 'No.', credits-, title}
           status: 200 OK
           headers:
           - [Content-Type, text/plain; charset=UTF-8]
                                                                     (100 rows)
 
              ----
-             /course{department:as('Dept Code')+,number:as('No.'),credits-,title}
+             /course{department+:as('Dept Code'),number:as('No.'),credits-,title}
              SELECT "course"."department",
                     "course"."number",
                     "course"."credits",