Skip to content
This repository has been archived by the owner on Aug 8, 2020. It is now read-only.
/ doctest_quizzes Public archive

Allows quizzes to be taken with the doctest library

License

Notifications You must be signed in to change notification settings

evaherrada/doctest_quizzes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doctest Quiz

Parameters

  • quiz

    • This parameter specifies the name of the folder that the quiz items are in.
    • This is a relative path, and it should NOT include the folder 'quizzes'
    • Syntax
      • path.to.folder
  • paths

    • Syntax
      • [['filename', {extra_tests}, 'function_name']]
        • filename
          • Name of the question file
          • Should be a string
        • extra_tests
          • Key is the doctest in ('>>>' line in a normal doctest)
            • If doctest in is a list, put the entire thing in quotes
          • Value is doctest out (line after '>>>' in a normal doctest)

About

Allows quizzes to be taken with the doctest library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages