简体   繁体   English

LF 系列的评分脚本如何用于手动评分练习?

[英]How does the grading script of the LF series work for manually graded exercises?

I am trying to figure out how the LF test scripts output the manually graded assignments when run from the terminal.我试图弄清楚从终端运行时 LF 测试脚本如何输出手动评分的作业。 For instance, if you look at Induction.v there is an exercise called plus_comm_informal I am trying to get the test script, InductionTest.v to pick up the comments or content that I write.例如,如果您查看Induction.v有一个名为plus_comm_informal的练习,我正在尝试获取测试脚本InductionTest.v以获取我编写的评论或内容。 So I made the following attempts to monkey debug.所以我做了以下尝试猴子调试。

(** **** Exercise: 2 stars, advanced, especially useful (plus_comm_informal) 

    Translate your solution for [plus_comm] into an informal proof:

    Theorem: Addition is commutative.

    Proof: (* Let's see how this works! 1*)
    Let's see how this works! 2
*)

(** Let's see how this works! 3 *)

(* Let's see how this works! 4 *)

(* Do not modify the following line: *)
Definition manual_grade_for_plus_comm_informal : option (nat*string) := None.
(** [] *)

I saved the file.我保存了文件。 Then I compile the file with coqc -Q . LF .\\Induction.v然后我用coqc -Q . LF .\\Induction.v编译文件coqc -Q . LF .\\Induction.v coqc -Q . LF .\\Induction.v and then run the test file with coqc -Q . LF .\\InductionTest.v coqc -Q . LF .\\Induction.v然后使用coqc -Q . LF .\\InductionTest.v运行测试文件coqc -Q . LF .\\InductionTest.v coqc -Q . LF .\\InductionTest.v

The output of that doesn't give me any of the comments I passed in the manually graded exercises.它的输出没有给我任何我在手动评分练习中传递的评论。 The relevant section of the terminal output is as follows.终端输出的相关部分如下。

-------------------  plus_comm_informal  --------------------

#> Manually graded: plus_comm_informal
Advanced
Possible points: 2
Score: Ungraded
Comment: None

What am I missing?我错过了什么?

There isn't much to do about this because those exercises have to be graded manually.对此没什么可做的,因为这些练习必须手动评分。 If you're turning this in for homework, you'll have to double-check that you did all the manual exercises yourself.如果您将其用于家庭作业,则必须仔细检查您是否自己完成了所有手动练习。 If you are teaching yourself, you can give yourself a dummy grade by changing the None.如果您正在自学,您可以通过更改None.来给自己一个虚拟成绩None. to Some (1, ""%string).Some (1, ""%string).

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM