Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
alesyacurtis committed Apr 6, 2024
1 parent 36a596a commit 25db337
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tasks/seq/shemiakina_a_ShellSort/include/ops_seq.hpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Copyright 2024 Shemiakina Alesia
#pragma once

#include <iterator>
#include <algorithm>
#include <iterator>
#include <memory>
#include <random>
#include <string>
Expand Down
6 changes: 2 additions & 4 deletions tasks/seq/shemiakina_a_ShellSort/src/ops_seq.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright 2024 Shemiakina Alesya
#include "seq/shemiakina_a_ShellSort/include/ShellSort_seq.hpp"

#include <thread>
#include "seq/shemiakina_a_ShellSort/include/ops_seq.hpp"

using namespace std::chrono_literals;

Expand All @@ -17,8 +16,7 @@ bool ShellTaskSequential::pre_processing() {
bool ShellTaskSequential::validation() {
internal_order_test();
// Check count elements of output
return taskData->inputs_count.size() == 1 && taskData->inputs_count[0] > 0 &&
taskData->outputs_count.size() == 1 &&
return taskData->inputs_count.size() == 1 && taskData->inputs_count[0] > 0 && taskData->outputs_count.size() == 1 &&
taskData->inputs_count[0] == taskData->outputs_count[0];
}

Expand Down

0 comments on commit 25db337

Please sign in to comment.