在 COBOL 学习路径上测试

了解如何在 Exercism 上测试你的 COBOL 练习


选择你当前使用的操作系统:

Windows

  1. 打开命令提示符。

  2. 获取第一个练习:

     C:\Users\USERNAME> exercism download --exercise hello-world --track cobol
    
  3. 进入练习文件夹:

     C:\Users\USERNAME> cd C:\Users\USERNAME\exercism\cobol\hello-world
    
  4. 运行测试:

     C:\Users\USERNAME\exercism\cobol\hello-world> test.ps1
    

    (第一次运行测试时如果失败不用担心,每个练习都是这样开始的。)

  5. 完成练习。 阅读 instructions.md,了解如何解决这个练习(在 GitHub 上查看)。

祝你好运,玩得开心,欢迎来到 COBOL track!


macOS

  1. 打开终端窗口。

  2. 获取第一个练习:

     $ exercism download --exercise hello-world --track cobol
    
  3. 进入练习文件夹:

     $ cd /Users/USERNAME/exercism/cobol/hello-world
    
  4. 运行测试:

     $ bash test.sh
    

    (第一次运行测试时如果失败不用担心,每个练习都是这样开始的。)

    提示:如果遇到提示说缺少 basename,可以用 brew 安装 coreutils。(brew install coreutils)

  5. 完成练习。

    阅读 instructions.md,了解如何解决这个练习(在 GitHub 上查看)。

祝你好运,玩得开心,欢迎来到 COBOL track!


Linux

  1. 打开终端窗口。

  2. 获取第一个练习:

     $ exercism download --exercise hello-world --track cobol
    
  3. 进入练习文件夹:

    $ cd /home/USERNAME/exercism/cobol/hello-world
    
  4. 运行测试:

     $ bash test.sh
    

    (第一次运行测试时如果失败不用担心,每个练习都是这样开始的。)

  5. 完成练习。

    阅读 instructions.md,了解如何解决这个练习(在 GitHub 上查看)。

祝你好运,玩得开心,欢迎来到 COBOL track!