power-doctest ã¨ãã doctest風 ã«ã³ã¼ãã¨è©ä¾¡çµæã®ã³ã¡ã³ãã並ã¹ãã¨ãã¹ãã¨ãã¦å®è¡åºæ¥ããããªNode製ã®ãã¼ã«ãä½ãã¾ããã
power-doctest power-doctest doctest風ã®JavaScriptãã¹ããã¼ã« è©ä¾¡ãããå¼; // => æå¾ ããè©ä¾¡çµæ ç®ç æ¸ç±ã®åçµè£å© (not for production) ã¨ãã£ã¿ããé¢ããã«ã³ã¼ããè©ä¾¡åºæ¥ã twada/power-assert å©ç¨ãªã®ã§ãééããè¦ããã ãµã³ãã«ã³ã¼ã 㨠ãã¹ãã³ã¼ããä¸ç·ã«ãã£ã¦ãéåæããªãæ§æ ä»çµã¿ Transform JavaScript AST è©ä¾¡ãããå¼; // => æå¾ ããè©ä¾¡çµæ -> assert(è©ä¾¡ãããå¼ === æå¾ ããè©ä¾¡çµæ); ä»çµã¿(å®è¡) nodeã®vmã¢ã¸ã¥ã¼ã« like eval, but not eval ãã¡ã¤ã«ããèªã¿è¾¼ãã ã®ã¨åãããã«å®è¡ã§ãã å®è¡ã³ã³ããã¹ããããæ¿ãããã ã°ãã¼ãã«ç©ºéã«ãããã®ãã¢ãã¯ã«å¤ãããã§ãã éã«å®è¡ã³ã³ããã¹
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}