test tag

21 questions


1 answers
433 views
0
I wonder if it's irrelevant to use BFS!

The questions are as follows!There is an ice mold of N×M size. The part with the hole is marked as 0 and the part with the partition is marked as 1.If the perforated parts are attached up, down, left,...

1 years ago

1 answers
369 views
0
Why is the first Phonkemon question correct?

def solution(nums): answer = 0 l = int(len(nums) / 2) nums_set = len(set(nums)) if l < nums_set: answer = l elif l > nums_set: answer = nums_set else: answer = l return answerThis is Phonke...

1 years ago

1 answers
249 views
0
Python error question TypeError: 'builtin_function_or_method' object is not writable

def solution(sizes): answer = 0 # The smallest of the horizontal gyrings, the smallest of the verticals, # When you change the horizontal and vertical, if the value is less than the max of the changed...

2 years ago

1 answers
366 views
0
Python Cote Question

def solution(n): answer = [] # First, pull out all the mineral water, and then leave only the few of the mineral water. for i in range(2,n+1): if n%i == 0: answer.append(i) for i in answer: cnt = 0...

2 years ago

1 answers
499 views
0
I want to resolve ArgumentError: wrong number of arguments (given2, expected1) in Rails test

Rails 6.0.4Ruby 3.0.2DockerIn the Rails tutorial, we are building and developing an environment with Docker.Now we're going up to Chapter 10, but we're testing with minitest and we're writing the acce...

2 years ago

1 answers
144 views
0
XCTest Does Not Call `setUp`

I am trying to do an XCTest, but neither setUp nor testExample are called in the code below.import XCTestclass HogeTests:XCTestCase{ override funcsetUp(){ // Put setup code here. This method is calle...


2 answers
119 views
0
How to Test the Private Method of the Model

modelclass test  def initialize(val1,val2)    validate(val1,val2)  end  private   def validate(val1,val2)    raise xxxx errorless val1.presnet?    raise yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy  ...

2 years ago

1 answers
150 views
0
I want to link test codes and product codes

Does anyone know how to link test codes and product codes?I'm currently developing software in Java, but it's getting a little complicated.I want to do the test well, so I want to know which test code...

2 years ago

1 answers
87 views
0
I want to create code that is not processed only when XCTest runs on swift.

I am using XCTest.For example, you would like to test the marker of funcaaa below.Then, it will fall in tableView.reload.By the way, tableView.reload does not affect the test results.Therefore, only c...

2 years ago

1 answers
110 views
0
How to Stub Process.env in Node.js

I would like to replace process.env for testing purposes.Currently, we are replacing it as follows.Is there a smarter way?describe('test', function(){ beforeEach(function(){ this.env = process.env; pr...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.