question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about the tests

See original GitHub issue

Hi Iarna! Author of sgarciac/bombadil here. I’m wondering how you ran the tests against bombadil, since I see many tests in your comparison stating that bombadil fails, but that it actually passes, mostly of them for invalid toml files. I’m guessing you are expecting bombadil to throw an error in those cases? i.e., the test for float leading zero:

var bombadil = require('@sgarciac/bombadil')
var input = 'leading-zero = 03.14'
var reader = new bombadil.TomlReader
reader.readToml(input)
reader.result // -> undefined
reader.errors.length // -> 1

The comparison page states bombadil fails to signal an error, but it actually works as expected, putting an error in the reader.errors array and keeping reader.result undefined.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
iarnacommented, Sep 7, 2018

I’m gonna move the test runner over to https://github.com/iarna/toml-spec-tests so maybe we can do further dev there.

0reactions
sgarciaccommented, Sep 13, 2018

Those make more sense than mine, I’ll use them instead

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exam Questions: Types, Characteristics, and Suggestions
This tips sheet contains a brief description of seven types of examination questions, as well as tips for using each of them: 1)...
Read more >
A Short Guide to Writing Effective Test Questions
Question ? A Short Guide to Writing Effective. Test Questions. Designed & Developed by: Ben Clay. Kansas Curriculum Center. Formatting & Text Processing...
Read more >
Tests & Quizzes: Question Types - Pepperdine Community
Here are the various types of questions you can employ in your assessments. Multiple Choice; Survey; Short Answer/Essay; Fill in the Blank; Numeric...
Read more >
50 Question Test - Genius Tests
Is your IQ score high enough to be considered a genius? Take this free intelligence test and see your score instantly!
Read more >
Test-Taking Strategies – Common Questions
Are multiple-choice tests easier that essay tests? POSSIBLE STRATEGIES: This question depends on several factors such as: • Your skills — sometimes we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found