This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <unistd.h> | |
class myClass{ | |
public: | |
myClass(){ | |
std::cout << "constructor called" << std::endl; | |
} | |
~myClass(){ | |
std::cout << "destructor called" << std::endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <unistd.h> | |
class bar{ | |
public: | |
bar(){} | |
~bar(){} | |
void setLambda(std::function<void()> func){ | |
_func = func; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# file spec/libs/lottery_spec.rb | |
require 'spec_helper' | |
RSpec.describe 'lib/lottery' do | |
describe 'Lottery.pick' do | |
let(:characters) { create_list(:character, 2) } | |
let(:num_samples) { 10000 } | |
subject do | |
num_chosen = 0 | |
num_samples.times do |
NewerOlder