c tag

1304 questions


1 answers
83 views
0
factorybot does not work

Currently using rspec to study test code.So I am using factory_bot, but I get an error in the build.KeyError: Factory not registered:Here is the error statement.https://masawada.hatenablog.jp/entry/20...


1 answers
86 views
0
I don't understand why I run expect before the code I want to test when I use the mock in RSpec.

I created the test code below, but if I put the code expect under get:index params, I get an error if there is no value.It's strange that other test codes (without a mock) had code that you wanted to ...


1 answers
77 views
0
A compilation error occurs when a variable is included in the sqrt() argument.undefined reference. What should I do?

As in the comment out statement, there is no problem if you directly substitute a number, but if you insert a variable, you will get a compilation error.What should I do?running environment:Ubuntugcc ...

c gcc
2 years ago

1 answers
74 views
0
When you play a video in AVPlayerViewController, the screen is completely dark.

Playing videos in AVPlayerViewControllerWe have created a controller class that inherited the AVPlayerViewController and are playing it back with the following code:self.player=[AVPlayer playerWithURL...

2 years ago

1 answers
109 views
0
There is no directory when writing the MinGW gcc compiler.error

C:\Users\ob\AppData\Local\Temp\ccFJqNal.sgcc.exe:error:CreateProcess:No such file or directoryThis User/ob/ So far, it was created during installation with Win's Dir.After that, I tried to make Appdat...

2 years ago

2 answers
90 views
0
Unable to compile gtk+2.0.

Unable to compile gtk+2.0.Operating System: Windowscompilers:GCCSource File:J:\gtk\main.cWe expanded gtk+-bundle_3.10.4-20131202_win32.zip to J:\gtk\gtk.in batch fileset PATH=gtk\bin\;%PATH%cmdRun and...

2 years ago

2 answers
92 views
0
rspec does not pass the test using create_list in factorybot

spec/factories/projects.rbI would like to set the user.rb to create 5 projects each time a user is created, but an error is printed and it does not work well.FactoryBot.definedo factory —Project do se...

2 years ago

4 answers
142 views
0
What is the clear difference between declaration and definition?

What is the clear difference between declaration and definition?For example, can I consider the following examples as both definitions?#define a100#define ba

2 years ago

1 answers
92 views
0
The image set to UITabBarItem is painted out

In Xcode, pdf is registered in imageset with Vector.I'm using that resource as a tab bar image.Display the screen in the presentViewController.If you close the screen, the white part of the image will...

2 years ago

3 answers
37 views
0
Countermeasures for Analysis with the strings Command

After writing a program in C language, I tried to create an executable file by gcc and analyze it binary, but for the following program, the strings command will print the string hoge.Therefore, I wou...

c
2 years ago
« - 27 - »

© 2024 OneMinuteCode. All rights reserved.