method-arguments-lab-online-web-sp-000

时间:2021-03-05 01:52:52
【文件属性】:
文件名称:method-arguments-lab-online-web-sp-000
文件大小:7KB
文件格式:ZIP
更新时间:2021-03-05 01:52:52
Ruby 方法参数实验室 目标 定义一个接受参数并在方法主体中使用该参数的方法。 定义一个接受两个参数并在方法主体中使用两个参数的方法。 指示 您将在lib/introduction.rb对方法进行编码。 #introduction方法 我们将使用测试错误来指导我们完成本实验的要求,因此让我们运行测试套件开始。 为此,请在您的终端中运行learn test 。 让我们看一下第一个错误: Failures: 1) # introduction takes in an argument of a name and puts out a phrase with that name using string interpolation Failure/Error: expect{introduction( " Josh " )}.to output( " Hi, my name is Jo
【文件预览】:
method-arguments-lab-online-web-sp-000-master
----.learn(63B)
----lib()
--------introduction.rb(0B)
----spec()
--------introduction_spec.rb(547B)
--------spec_helper.rb(4KB)
----CONTRIBUTING.md(2KB)
----LICENSE.md(1KB)
----README.md(4KB)
----.rspec(30B)
----.gitignore(642B)

网友评论