Skip to content
Prev Previous commit
Next Next commit
rename file
  • Loading branch information
RenanSouza2 committed Jan 29, 2024
commit b06b97003e519b030b8c52e1c7e35384efd2eaee
2 changes: 1 addition & 1 deletion scripts/generate/templates/Arrays.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const format = require('../format-lines');
const { capitalize } = require('../../helpers');
const { TYPES_STORAGE, TYPES_MEMORY } = require('./Array.opts');
const { TYPES_STORAGE, TYPES_MEMORY } = require('./Arrays.opts');

const header = `\
pragma solidity ^0.8.20;
Expand Down
4 changes: 2 additions & 2 deletions test/utils/Arrays.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { loadFixture } = require('@nomicfoundation/hardhat-network-helpers');

const { randomArray, generators } = require('../helpers/random');
const { capitalize } = require('../../scripts/helpers');
const { TYPES_STORAGE, TYPES_MEMORY } = require('../../scripts/generate/templates/Array.opts');
const { TYPES_STORAGE, TYPES_MEMORY } = require('../../scripts/generate/templates/Arrays.opts');

// See https://en.cppreference.com/w/cpp/algorithm/ranges/lower_bound
const lowerBound = (array, value) => {
Expand All @@ -20,7 +20,7 @@ const lowerBound = (array, value) => {

const hasDuplicates = array => array.some((v, i) => array.indexOf(v) != i);

describe('Arrays', function () {
describe.only('Arrays', function () {
describe('findUpperBound', function () {
for (const [title, { array, tests }] of Object.entries({
'Even number of elements': {
Expand Down