fix nat cpp tests

This commit is contained in:
2021-08-01 20:57:56 -06:00
parent d07dba68b7
commit 54d871a006
2 changed files with 3 additions and 3 deletions

View File

@@ -18,13 +18,13 @@
hxmlFile "extern-files/python/args.hxml" hxmlFile "extern-files/python/args.hxml"
importHxFile "extern-files/python/import.hx" importHxFile "extern-files/python/import.hx"
langProjectFile "extern-files/python/requirements.txt") langProjectFile "extern-files/python/requirements.txt")
[:Array<String> titles _ :Array<String> props _ :String mediaWikiUrl _ :Float maxLag (or maxLag 1) :Map<String,String> headers _] [:Array<String> titles _ :Array<String> props _ :String mediaWikiUrl _ :String maxLag (if maxLag (Std.string maxLag) "1") :Map<String,String> headers _]
(Requests.get mediaWikiUrl (Requests.get mediaWikiUrl
[ [
=>"action" "query" =>"action" "query"
=>"titles" (titles.join "|") =>"titles" (titles.join "|")
=>"prop" (props.join "|") =>"prop" (props.join "|")
=>"maxlag" (Std.string maxLag) =>"maxlag" maxLag
=>"format" "json" =>"format" "json"
] ]
(object headers headers)))) (object headers headers))))

View File

@@ -1,2 +1,2 @@
#! /bin/bash #! /bin/bash
./bin/cpp/test/TestMain ./bin/cpp/TestMain