Skip to content
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

Basic literacy generated course #314

Merged
merged 11 commits into from
Aug 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
more fixes
martinmr committed Aug 2, 2024
commit 9794e2ab7e547c7175055cf60637bca71739fb5f
4 changes: 3 additions & 1 deletion src/data/course_generator/literacy.rs
Original file line number Diff line number Diff line change
@@ -27,17 +27,19 @@ pub const EXAMPLE_SUFFIX: &str = ".example.md";
/// The extension of files containing exceptions.
pub const EXCEPTION_SUFFIX: &str = ".exception.md";

// grcov-excl-start: not meeting coverage requirements for some reason.
/// The types of literacy lessons that can be generated.
#[derive(Clone, Debug, Deserialize, PartialEq, Serialize, TS)]
#[ts(export)]
pub enum LiteracyLesson { // grcov-excl-line
pub enum LiteracyLesson {
/// A lesson that takes examples and exceptions and asks the student to read them.
Reading,

/// A lesson that takes examples and exceptions and asks the student to write them based on the
/// tutor's dictation.
Dictation,
}
// grcov-excl-stop

/// The configuration to create a course that teaches literacy based on the provided material.
/// Material can be of two types.