method arguments lab online web sp 000 源码

qqenable49365 18 0 ZIP 2021-03-27 18:03:33

方法参数实验室 目标 定义一个接受参数并在方法主体中使用该参数的方法。 定义一个接受两个参数并在方法主体中使用两个参数的方法。 指示 您将在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

用户评论
请输入评论内容
评分:
暂无评论