-
-
Notifications
You must be signed in to change notification settings - Fork 397
Fix DateTime and Object tests #593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The doc is automatically generated from scriban/src/Scriban/Functions/DateTimeFunctions.cs Lines 123 to 134 in f8fa7e2
You need then to rerun |
|
@xoofx thank you for pointing me in the right direction, the remarks are updated and if have ran Sriban.DocGen |
|
Not your fault (probably a previous PR), but it seems the JSON version in the code is invalid and has invalid spaces: scriban/src/Scriban/Functions/ObjectFunctions.cs Lines 441 to 481 in f8fa7e2
If you can correct it as well, that would be great, thank you! |
|
Basically it should be: /// ```html
/// {"foo":"bar","baz":[1, 2, 3]}
/// true
/// null
/// ```
/// </remarks>
public static string ToJson(TemplateContext context, object value) |
|
Yes, i fixed the object.to_json test, all test are now succesfull on my system |
|
Thank you for the quick fix! |
A Doc_date test failed because it validates the date.now.year.